Function at 0x404e5f
Capabilities:
Set current directory

Disassembly:
mov eax, 0x406e08
call fcn.004067f0
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00403169
mov byte [ebp - 4], 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00401084
pop ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
call fcn.00401169
pop ecx
pop ecx
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.0040376f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040355b
nop
nop
nop
nop
nop
nop
lea ecx, [ebp - 0x14]
call fcn.004031b5
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.00405175
test eax, eax
je 0x404fa9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x18], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
push ebx
push ebx
push 0x4051fb
push ebx
push ebx
call fcn.004026f3
add esp, 0x18
mov dword [ebp - 0x18], eax
call fcn.00405422
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
nop
nop
push dword [ebp - 0x18]
call fcn.0040252e
pop ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x40514e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x20]
push eax
call fcn.004055b3
mov byte [ebp - 4], 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x20]
push eax
mov esi, 0x40a50c
push esi
call fcn.00404e12
add esp, 0xc
test al, al
je 0x4050a1
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x20]
push eax
call fcn.004035a3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
call fcn.0040566a
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
call fcn.0040376f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0040355b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x20]
push eax
call fcn.004035a3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push eax
call fcn.00405807
mov byte [ebp - 4], 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add esp, 4
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x24]
push eax
call fcn.004035a3
mov byte [ebp - 4], 8
call fcn.004023af
pop ecx
nop
nop
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.0040355b
jmp 0x4050a8
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x1c]
push eax
call fcn.00405914
mov byte [ebp - 4], 0xa
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00404e12
add esp, 0xc
test al, al
je 0x405125
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.0040366d
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
lea eax, [ebp - 0x1c]
push eax
call fcn.004035a3
mov byte [ebp - 4], 0xa
call fcn.00402241
pop ecx
pop ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x405136
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040355b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040355b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040355b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret