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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cd81
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4ad100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14c], esi
mov eax, ecx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], eax
push 3
xorps xmm0, xmm0
mov dword [ebp - 0x15c], eax
push 0x49ff70
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x160], 0
call fcn.00403cc0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x174]
cmp dword [ebp - 0x160], 0xf
mov eax, dword [ebp - 0x174]
cmova edi, eax
mov dword [ebp - 0x154], esi
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x178], edi
jbe 0x439710
mov ecx, dword [esi]
mov dword [ebp - 0x154], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x150], ecx
cmp edx, ecx
ja 0x439867
mov eax, ecx
sub eax, edx
test edx, edx
jne 0x439736
xor edi, edi
jmp 0x43981b
mov ecx, dword [ebp - 0x154]
inc eax
movsx edx, byte [edi]
add eax, ecx
mov dword [ebp - 0x17c], eax
sub eax, ecx
push eax
push edx
push ecx
mov dword [ebp - 0x15c], edx
call fcn.004685a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x439861
nop word [eax + eax]
mov esi, dword [ebp - 0x164]
mov ecx, edi
mov edx, dword [ebp - 0x178]
sub esi, 4
jb 0x439794
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x439799
add ecx, 4
add edx, 4
sub esi, 4
jae 0x439783
cmp esi, 0xfffffffc
je 0x4397cd
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4397c6
cmp esi, 0xfffffffd
je 0x4397cd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4397c6
cmp esi, 0xfffffffe
je 0x4397cd
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4397c6
cmp esi, 0xffffffff
je 0x4397cd
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4397cd
sbb eax, eax
or eax, 1
jmp 0x4397cf
xor eax, eax
test eax, eax
je 0x4397fe
mov eax, dword [ebp - 0x17c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x15c]
push edi
call fcn.004685a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x439770
mov esi, dword [ebp - 0x14c]
jmp 0x439861
sub edi, dword [ebp - 0x154]
mov esi, dword [ebp - 0x14c]
cmp edi, 0xffffffff
je 0x439861
mov edx, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x150]
cmp ecx, edi
jb 0x439ce4
mov eax, ecx
sub eax, edi
cmp eax, edx
cmovb edx, eax
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x439836
mov eax, dword [esi]
lea ecx, [eax + edi]
mov eax, dword [ebp - 0x150]
sub eax, edx
mov dword [ebp - 0x150], eax
sub eax, edi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00467ea0
mov eax, dword [ebp - 0x150]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x160]
cmp ecx, 0xf
jbe 0x4398a8
inc ecx
cmp ecx, 0x1000
jb 0x439898
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439cf3
jmp 0x43989e
mov edx, dword [ebp - 0x174]
push ecx
push edx
call fcn.0046619b
add esp, 8
cmp dword [0x4b16dc], 0
jne 0x4399b8
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4398f0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403cc0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0xf
mov ecx, 0x4b16cc
push dword [ebp - 0x11c]
cmova eax, dword [ebp - 0x12c]
push eax
call fcn.00402ba0
cmp dword [0x4b16e0], 0xf
mov ecx, 0x4b16cc
mov edx, dword [0x4b16dc]
cmova ecx, dword [0x4b16cc]
push 5
push str._____
push ecx
call fcn.0043ce80
add esp, 0xc
cmp eax, 0xffffffff
je 0x439977
push 3
push 0x49ff6c
mov ecx, 0x4b16cc
call fcn.00402ba0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x4399b8
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4399ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439ce9
push ecx
push edx
call fcn.0046619b
add esp, 8
cmp dword [0x4b16e0], 0xf
mov eax, 0x4b16cc
cmova eax, dword [0x4b16cc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x4399dc
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
cmp edi, 5
jne 0x439b41
mov esi, edi
mov edx, str.cd_..
sub esi, 4
jb 0x439a05
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x439a0a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4399f4
cmp esi, 0xfffffffc
je 0x439a3e
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x439a37
cmp esi, 0xfffffffd
je 0x439a3e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x439a37
cmp esi, 0xfffffffe
je 0x439a3e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x439a37
cmp esi, 0xffffffff
je 0x439a3e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x439a3e
sbb eax, eax
or eax, 1
jmp 0x439a40
xor eax, eax
test eax, eax
jne 0x439b3b
cmp dword [0x4b16e0], 0xf
mov eax, 0x4b16cc
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmova eax, dword [0x4b16cc]
push eax
call esi
push 0x49ff80
call esi
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439aa4
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403cc0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0xf
mov ecx, 0x4b16cc
push dword [ebp - 0x11c]
cmova eax, dword [ebp - 0x12c]
push eax
call fcn.00402ba0
mov esi, dword [ebp - 0x158]
mov ecx, esi
push 0x4b16cc
call fcn.00402720
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x439cc7
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x439cbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439cee
jmp 0x439cbd
mov esi, dword [ebp - 0x14c]
mov eax, 3
mov dword [ebp - 0x184], 0
cmp edi, eax
mov dword [ebp - 0x180], 0
xorps xmm0, xmm0
mov ecx, esi
cmovb eax, edi
cmp dword [esi + 0x14], 0xf
movups xmmword [ebp - 0x194], xmm0
jbe 0x439b73
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x194]
call fcn.00403cc0
cmp dword [ebp - 0x180], 0xf
lea ecx, [ebp - 0x194]
mov edi, dword [ebp - 0x194]
mov esi, dword [ebp - 0x184]
cmova ecx, edi
cmp esi, 3
jne 0x439c07
mov edx, 0x49ff7c
sub esi, 4
jb 0x439bc1
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x439bc6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x439bb0
cmp esi, 0xfffffffc
je 0x439bfa
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x439bf3
cmp esi, 0xfffffffd
je 0x439bfa
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x439bf3
cmp esi, 0xfffffffe
je 0x439bfa
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x439bf3
cmp esi, 0xffffffff
je 0x439bfa
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x439bfa
sbb eax, eax
or eax, 1
jmp 0x439bfc
xor eax, eax
mov byte [ebp - 0x145], 1
test eax, eax
je 0x439c0e
mov byte [ebp - 0x145], 0
mov eax, dword [ebp - 0x180]
cmp eax, 0xf
jbe 0x439c44
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x439c3a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439cf3
push ecx
push edi
call fcn.0046619b
add esp, 8
cmp byte [ebp - 0x145], 0
mov edx, dword [ebp - 0x14c]
je 0x439c66
mov ecx, dword [ebp - 0x158]
call fcn.00439d00
mov eax, dword [ebp - 0x158]
jmp 0x439cc9
lea ecx, [ebp - 0x144]
call fcn.0043ad50
mov esi, dword [ebp - 0x158]
lea edx, [ebp - 0x144]
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.0043a140
mov ecx, dword [ebp - 0x130]
cmp ecx, 7
jbe 0x439cc7
mov edx, dword [ebp - 0x144]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x439cbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439cf3
push ecx
push edx
call fcn.0046619b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466048
mov esp, ebp
pop ebp
ret
call fcn.00410820
call fcn.0046b31f
call fcn.0046b31f
call fcn.0046b31f
int3