Function at 0x41a396
Capabilities:
Set current directory

Disassembly:
mov eax, 0x4a8e16
call fcn.00483228
sub esp, 0x144
and dword [ebp - 0x24], 0
push ebx
push esi
push edi
mov esi, ecx
push 1
lea eax, [ebp - 0x1c]
pop ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00446e5b
pop ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 2
push dword [eax]
call edi
test eax, eax
jne 0x41a418
push 0x4dd1e4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0xc]
call fcn.0049d64d
lea eax, [ebp - 0x10]
push eax
call fcn.00447404
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.0049db21
push dword [eax]
call edi
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0049d8d8
push 0x4e7e70
lea ecx, [ebp - 0x14]
call fcn.0049d946
mov ecx, 0x4e83f8
mov byte [ebp - 4], 4
call fcn.00462b45
cmp eax, ebx
je 0x41a4a3
mov ecx, 0x4e83f8
call fcn.00462b45
cmp eax, 2
je 0x41a4a3
push 0
lea ecx, [ebp - 0x150]
call fcn.00412698
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.0049d9c5
lea ecx, [ebp - 0x150]
mov dword [ebp - 0xf0], ebx
call fcn.00499d69
cmp eax, ebx
jne 0x41a48f
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], 0
je 0x41a48f
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049d9c5
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 4
call fcn.00412739
jmp 0x41a5a1
cmp dword [0x4e80f4], 0
je 0x41a4b1
mov dword [ebp - 0x18], ebx
jmp 0x41a4c0
mov eax, dword [0x4e8114]
neg eax
sbb eax, eax
add eax, 0x11
mov dword [ebp - 0x18], eax
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x10], eax
push 0x7ee
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0049de81
push 0
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0049d64d
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4dd52c
call fcn.0049d946
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 8
call fcn.0049d64d
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
push eax
call fcn.0044d02b
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.0049d9c5
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0049d8d8
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x28c]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004018ce
mov ecx, dword [esi + 0x28c]
mov eax, dword [ecx]
call dword [eax + 0xb8]
cmp eax, ebx
jne 0x41a589
mov ecx, dword [esi + 0x28c]
lea eax, [ebp + 0xc]
push eax
call fcn.0041a5ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0049d9c5
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.0049d8d8
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0049d9c5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0049d8d8
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0049d64d
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0049d8d8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc