Function at 0x408760
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x47c4c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x254]
push esi
push edi
mov dword [esp + 0x18], eax
push 0x48a068
lea ecx, [esp + 0x25c]
push ecx
lea edx, [esp + 0x1c]
xor ebp, ebp
push edx
mov dword [esp + 0x25c], ebp
call fcn.00405530
add esp, 0xc
mov byte [esp + 0x250], 1
call fcn.00476002
mov esi, dword [eax + 4]
xor eax, eax
mov word [esp + 0x3c], bp
mov ecx, 0x81
lea edi, [esp + 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x3c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [esi + 0xd0]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call ebx
lea ecx, [esp + 0x24]
call fcn.0044046d
mov byte [esp + 0x250], 2
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push ebp
push 0x48a060
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 3
call fcn.00440502
lea ecx, [esp + 0x258]
mov edi, eax
call fcn.00408220
lea ecx, [esp + 0x14]
call fcn.00408220
cmp edi, ebp
je 0x408981
jmp 0x408860
lea ecx, [esp + 0x24]
call fcn.00440360
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.004407ec
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x250], 4
je 0x4088d9
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x4088c7
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4088c7
push eax
call fcn.00401570
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4088be
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], esi
jmp 0x4088d9
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00403be0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x250], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
jge 0x408923
push edi
lea ecx, [esp + 0x14]
call fcn.00401520
mov esi, dword [esp + 0x10]
push esi
call fcn.0044a7c3
add esp, 4
test edi, edi
jl 0x408b18
cmp edi, dword [esi - 8]
jg 0x408b18
mov ebp, dword [esp + 0x258]
push esi
mov dword [esi - 0xc], edi
push ebp
mov word [esi + edi*2], 0
call fcn.0044a53d
add esp, 8
test eax, eax
je 0x408a36
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.0044a53d
add esp, 8
test eax, eax
je 0x408a83
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x408860
lea eax, [esp + 0x3c]
push eax
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x250], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 1
call fcn.00440493
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x250], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x258]
add eax, 0xfffffff0
mov dword [esp + 0x250], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x238]
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0x244
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
mov dword [eax], 0
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x250], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 1
call fcn.00440493
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x408aca
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
mov dword [eax], 1
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x250], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x250], 1
call fcn.00440493
lea eax, [edi - 0x10]
mov byte [esp + 0x250], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x250], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x408a0f
push 0x80070057
call fcn.004010a0
int3