Function at 0x40e360
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x46ab7d
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
cmp byte [0x4932e9], 0
mov ebp, dword [esp + 0x168]
mov esi, ecx
je 0x40e3e8
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push 7
push eax
mov dword [esi + 0x2ac], 6
call fcn.0040fe70
add esp, 8
mov ecx, 0x4947c0
call fcn.0041d8f0
mov ecx, dword [0x4947c0]
push ecx
mov ecx, 0x4947c0
mov ebp, eax
call fcn.0041d030
mov eax, dword [esi + 0x2ac]
cmp eax, 6
jne 0x40e546
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cc00
call fcn.00410380
add esp, 0xc
cmp eax, 7
jne 0x40e546
mov eax, dword [esi + 0x29c]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x2c]
push 0x12c
push ecx
call fcn.0044fb64
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e440
sub eax, edx
mov edi, eax
cmp edi, 3
jge 0x40e45f
mov ecx, 0x4947c0
call fcn.0041d0f0
jmp case.default.0x40e685
push 0x473674
push 0x37
push 4
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push 0
push edx
call fcn.0040fe70
add esp, 8
lea eax, [esp + 0x34]
push eax
mov ecx, 0x4947c0
call fcn.0041d2d0
mov ecx, eax
mov dword [esp + 0x164], 0
call fcn.00429180
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x160], 0xffffffff
call fcn.004290f0
test bl, bl
je 0x40e4f6
cmp byte [0x4932e9], 0
jne 0x40e4f6
lea ecx, [esp + 0x28]
push ecx
call fcn.0040cc60
add esp, 4
test al, al
je 0x40e4f6
mov ecx, 0x4947c0
call fcn.0041d0f0
mov esi, dword [esi + 0x20]
push 0x10
push 0x4736b0
push str._O_b_t
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp case.default.0x40e685
cmp edi, 4
jle 0x40e509
cmp byte [esp + edi + 0x27], 0x5c
lea edi, [esp + edi + 0x27]
jne 0x40e509
mov byte [edi], 0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00429010
call fcn.00405060
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40e450
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x49487c
call fcn.00429150
mov ebx, 1
push ebx
push 0x3e9
mov ecx, esi
mov byte [esi + 0x228], bl
call fcn.00438eb5
mov ecx, eax
call fcn.004390ad
mov eax, dword [esi + 0x2ac]
dec eax
cmp eax, 6
ja case.default.0x40e575
jmp dword [eax*4 + 0x40e904]
mov ecx, dword [esi + 0x28c]
call fcn.00430d10
jmp case.default.0x40e575
mov ecx, dword [esi + 0x290]
call fcn.00423370
jmp case.default.0x40e575
mov ecx, dword [esi + 0x294]
call fcn.00427f50
jmp case.default.0x40e575
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push 4
push edx
call fcn.0040fe70
add esp, 8
call fcn.00404780
mov edi, eax
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebp
call fcn.0042cc00
call fcn.00404780
add esp, 0xc
cmp eax, edi
jle 0x40e5f4
mov ecx, dword [esi + 0x298]
call fcn.004240a0
test al, al
je 0x40e450
mov ecx, dword [esi + 0x298]
call fcn.004249b0
mov ecx, dword [esi + 0x298]
call fcn.00423d40
jmp case.default.0x40e575
mov ecx, dword [esi + 0x29c]
call fcn.00402010
jmp case.default.0x40e575
mov ecx, dword [esi + 0x2a0]
add ecx, 0x188
push ecx
mov ecx, 0x493354
call fcn.00429100
mov ecx, dword [esi + 0x2a0]
call fcn.00427060
jmp case.default.0x40e575
mov ecx, dword [esi + 0x2a4]
call fcn.0041cb10
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cc00
call fcn.00410380
mov dword [esi + 0x2ac], eax
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebp
call fcn.0042cc00
call fcn.00410380
sub eax, ebx
add esp, 0xc
cmp eax, 6
ja case.default.0x40e685
jmp dword [eax*4 + 0x40e920]
mov ecx, dword [esi + 0x28c]
mov byte [esi + 0x228], 0
call fcn.00430d00
jmp case.default.0x40e685
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esi + 0x290]
call fcn.00422f40
mov ecx, dword [esi + 0x290]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x17c], ebx
call fcn.00422f10
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e020
cmp byte [0x4932e5], 0
jne 0x40e704
push 0
push 0x3e9
mov ecx, esi
call fcn.00438eb5
mov ecx, eax
call fcn.004390ad
mov ecx, dword [esi + 0x290]
call fcn.00423330
jmp case.default.0x40e685
mov ecx, dword [esi + 0x294]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00427bc0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, dword [esi + 0x294]
mov dword [esp + 0x17c], 2
call fcn.00427b90
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e020
mov ecx, dword [esi + 0x294]
call fcn.00427f40
jmp case.default.0x40e685
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00423f70
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x17c], 3
call fcn.00423f40
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e020
mov ecx, dword [esi + 0x298]
call fcn.004249a0
jmp case.default.0x40e685
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, dword [esi + 0x29c]
call fcn.00401f00
mov ecx, dword [esi + 0x29c]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [esp + 0x17c], 4
call fcn.00401ed0
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e020
mov ecx, dword [esi + 0x29c]
call fcn.00402000
jmp case.default.0x40e685
mov ecx, dword [esi + 0x2a0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00426f50
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, dword [esi + 0x2a0]
mov dword [esp + 0x17c], 5
call fcn.00426f20
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e020
mov ecx, dword [esi + 0x2a0]
call fcn.00427050
jmp case.default.0x40e685
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041c9a0
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x17c], 6
call fcn.0041c970
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e020
push 0
lea ecx, [esi + 0x18c]
call fcn.004390ad
push 0
lea ecx, [esi + 0x100]
call fcn.004390ad
mov ecx, dword [esi + 0x2a4]
call fcn.0041caa0
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044f51e
add esp, 0x150
ret 4