Function at 0x40eaa0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d9b1
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2c8], esi
push 0
push eax
call fcn.004fecc0
mov eax, dword fs:[0x2c]
add esp, 0xc
mov edi, dword [eax]
mov eax, dword [0x5882bc]
cmp eax, dword [edi + 4]
jle 0x40eb3d
push 0x5882bc
call fcn.004ac8c3
add esp, 4
cmp dword [0x5882bc], 0xffffffff
jne 0x40eb3d
push 0x5882bc
mov dword [0x5882c0], 0
call fcn.004ac879
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x2a5], 0
movlpd qword [ebp - 0x224], xmm0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push eax
call fcn.0042dc25
mov dword [ebp - 4], 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x2a5]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push 0x41af60
push 0x5882c0
call fcn.0042cd95
add esp, 0x10
test eax, eax
je 0x40f543
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 2
push eax
call fcn.0042dc5f
mov ecx, 0x587890
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebp - 0x234], 0
xor eax, eax
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ebe4
sub ecx, edx
sar ecx, 1
push ecx
push 0x587890
lea ecx, [ebp - 0x244]
call fcn.0040b2e0
mov dword [ebp - 4], 5
cmp word [0x5878b0], 0
je 0x40ec4d
mov ecx, 0x5878b0
mov dword [ebp - 0x2b0], 0
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ec40
jmp 0x40eccb
push 0
push 0x1a
push 0x5878b0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
push 0x5878b0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x5878b0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ec99
push 0x5878b0
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, 0x5878b0
mov dword [ebp - 0x2b0], 0
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ecc0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5878b0
lea ecx, [ebp - 0x2c0]
call fcn.0040b2e0
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
push str.centerdata.set
cmovae eax, dword [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x2ac]
cmp edx, 8
jb 0x40ed47
mov ecx, dword [ebp - 0x2c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f55c
push edx
push ecx
call fcn.004ac6c8
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
cmp edx, 8
jb 0x40edab
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eda1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f561
push edx
push ecx
call fcn.004ac6c8
add esp, 8
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0xf
mov byte [ebp - 0x28c], 0
mov dword [ebp - 4], 6
mov eax, dword [0x5882c4]
cmp eax, dword [edi + 4]
jle 0x40ee07
push 0x5882c4
call fcn.004ac8c3
add esp, 4
cmp dword [0x5882c4], 0xffffffff
jne 0x40ee07
push 0x5882c4
mov dword [0x5882c8], 0
call fcn.004ac879
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x2a5], 0
movlpd qword [ebp - 0x224], xmm0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 7
push eax
call fcn.0042dc25
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x2a5]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push 0x41b020
push 0x5882c8
call fcn.0042cd95
add esp, 0x10
test eax, eax
je 0x40f526
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 9
push eax
call fcn.0042dc5f
mov ecx, 0x58786c
mov byte [ebp - 4], 6
add esp, 4
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0xf
mov byte [ebp - 0x274], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eea0
sub ecx, edx
push ecx
push 0x58786c
lea ecx, [ebp - 0x274]
call fcn.00408dd0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x274]
lea ecx, [ebp - 0x21c]
call fcn.0040e1e0
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x260]
mov edi, eax
cmp edx, 0x10
jb 0x40ef19
mov ecx, dword [ebp - 0x274]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f566
push edx
push ecx
call fcn.004ac6c8
add esp, 8
test edi, edi
je 0x40f509
xorps xmm0, xmm0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x28c]
movq qword [ebp - 0x264], xmm0
lea ecx, [ebp - 0x274]
movups xmmword [ebp - 0x274], xmm0
call fcn.0040e5e0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xe
call fcn.004b2cd0
test al, al
jne 0x40f46e
push 8
push str.products
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], al
call fcn.00408dd0
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004b9980
mov byte [ebp - 4], 0xe
add esp, 8
mov edx, dword [ebp - 0x248]
mov edi, eax
mov dword [ebp - 0x220], edi
cmp edx, 0x10
jb 0x40efeb
mov ecx, dword [ebp - 0x25c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40efe1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f56b
push edx
push ecx
call fcn.004ac6c8
add esp, 8
xorps xmm0, xmm0
lea ecx, [ebp - 0x274]
push str.products
movups xmmword [ebp - 0x2a4], xmm0
movq qword [ebp - 0x294], xmm0
call fcn.004b1c40
push eax
lea ecx, [ebp - 0x2a4]
call fcn.004b0f10
mov byte [ebp - 4], 0x10
xor esi, esi
nop
lea ecx, [ebp - 0x2a4]
cmp esi, edi
jge 0x40f463
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x25c], xmm0
movq qword [ebp - 0x24c], xmm0
call fcn.004b1950
push eax
lea ecx, [ebp - 0x25c]
call fcn.004b0f10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x244]
push 9
push str.productid
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
call fcn.00408dd0
push 0
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004b9aa0
mov byte [ebp - 4], 0x11
add esp, 0xc
mov edx, dword [ebp - 0x230]
mov edi, eax
cmp edx, 0x10
jb 0x40f0df
mov ecx, dword [ebp - 0x244]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f0d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f570
push edx
push ecx
call fcn.004ac6c8
add esp, 8
cmp edi, 1
jne 0x40f448
push 3
push 0x560470
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.00408dd0
push 0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004b9aa0
mov byte [ebp - 4], 0x11
add esp, 0xc
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x220], eax
cmp edx, 0x10
jb 0x40f175
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f16b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f575
push edx
push ecx
call fcn.004ac6c8
add esp, 8
call fcn.00407b40
mov ecx, eax
test ecx, ecx
je 0x40f57a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x5602b4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x14
call fcn.00406e80
test al, al
jne 0x40f1be
push 0
push 0x5602b4
lea ecx, [ebp - 0x228]
call fcn.00406d90
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c0]
push 5
push str.token
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.00408dd0
push 0xfde9
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.004b9b30
add esp, 0x14
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x2ac]
cmp edx, 0x10
jb 0x40f25a
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f250
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f584
push edx
push ecx
call fcn.004ac6c8
add esp, 8
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov edx, dword [ebp - 0x228]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f299
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2d0]
call fcn.00426ed0
sub esp, 8
mov byte [ebp - 4], 0x1a
mov esi, dword [eax]
lea ecx, [ebp - 0x368]
call fcn.004093f0
lea eax, [ebp - 0x368]
mov byte [ebp - 4], 0x1b
push str._UserInfo__readfile__uid:
push eax
call fcn.00407550
add esp, 8
lea ecx, [ebp - 0x368]
push dword [ebp - 0x220]
call fcn.004192c0
lea eax, [ebp - 0x368]
push str._token:
push eax
call fcn.00407550
add esp, 8
lea edx, [ebp - 0x244]
cmp dword [ebp - 0x230], 0x10
lea ecx, [ebp - 0x368]
cmovae edx, dword [ebp - 0x244]
call fcn.0041c6c0
mov eax, dword [esi]
lea ecx, [ebp - 0x368]
push ecx
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x368]
call fcn.0040a3e0
mov byte [ebp - 4], 0x1c
mov esi, dword [ebp - 0x2cc]
test esi, esi
je 0x40f359
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40f359
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40f359
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x2c4]
lea eax, [ebp - 0x244]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.00408940
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x18], eax
cmp edx, 0x10
jb 0x40f3b4
mov ecx, dword [ebp - 0x244]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f589
push edx
push ecx
call fcn.004ac6c8
add esp, 8
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
call fcn.004b16b0
lea ecx, [ebp - 0x2a4]
call fcn.004b16b0
lea ecx, [ebp - 0x274]
call fcn.004b16b0
mov edx, dword [ebp - 0x278]
cmp edx, 0x10
jb 0x40f42a
mov ecx, dword [ebp - 0x28c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f420
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f58e
push edx
push ecx
call fcn.004ac6c8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x10
call fcn.004b16b0
mov edi, dword [ebp - 0x220]
inc esi
jmp 0x40f020
call fcn.004b16b0
mov esi, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x274]
call fcn.004b16b0
jmp 0x40f509
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [esi + 0x18], 0
jmp 0x40f3f0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xa
push eax
call fcn.0042dc80
add esp, 4
mov byte [ebp - 4], 8
test al, al
je 0x40f5a9
jmp 0x40f593
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
call fcn.0042dc80
add esp, 4
mov byte [ebp - 4], 1
jmp 0x40f53d
call fcn.005026a0
call fcn.005026a0
call fcn.005026a0
call fcn.005026a0
call fcn.005026a0
call fcn.005026a0
push 0x80004005
call fcn.00407c80
call fcn.005026a0
call fcn.005026a0
call fcn.005026a0
sub esp, 8
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
call fcn.0040c230
call fcn.0040c2f0
call fcn.0042cdad
int3