Function at 0x40e2a0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x46aaad
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 0x40e328
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push 7
push eax
mov dword [esi + 0x2ac], 6
call fcn.0040fd00
add esp, 8
mov ecx, 0x4947c0
call fcn.0041d890
mov ecx, dword [0x4947c0]
push ecx
mov ecx, 0x4947c0
mov ebp, eax
call fcn.0041cfd0
mov eax, dword [esi + 0x2ac]
cmp eax, 6
jne 0x40e486
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cba0
call fcn.00410210
add esp, 0xc
cmp eax, 7
jne 0x40e486
mov eax, dword [esi + 0x29c]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x2c]
push 0x12c
push ecx
call fcn.0044fb04
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e380
sub eax, edx
mov edi, eax
cmp edi, 3
jge 0x40e39f
mov ecx, 0x4947c0
call fcn.0041d090
jmp case.default.0x40e5c5
push 0x473684
push 0x37
push 4
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push 0
push edx
call fcn.0040fd00
add esp, 8
lea eax, [esp + 0x34]
push eax
mov ecx, 0x4947c0
call fcn.0041d270
mov ecx, eax
mov dword [esp + 0x164], 0
call fcn.00429120
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x160], 0xffffffff
call fcn.00429090
test bl, bl
je 0x40e436
cmp byte [0x4932e9], 0
jne 0x40e436
lea ecx, [esp + 0x28]
push ecx
call fcn.0040cba0
add esp, 4
test al, al
je 0x40e436
mov ecx, 0x4947c0
call fcn.0041d090
mov esi, dword [esi + 0x20]
push 0x10
push 0x4736c0
push str._O_b_t
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp case.default.0x40e5c5
cmp edi, 4
jle 0x40e449
cmp byte [esp + edi + 0x27], 0x5c
lea edi, [esp + edi + 0x27]
jne 0x40e449
mov byte [edi], 0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00428fb0
call fcn.00404f50
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40e390
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x49487c
call fcn.004290f0
mov ebx, 1
push ebx
push 0x3e9
mov ecx, esi
mov byte [esi + 0x228], bl
call fcn.00438e3c
mov ecx, eax
call fcn.00439034
mov eax, dword [esi + 0x2ac]
dec eax
cmp eax, 6
ja case.default.0x40e4b5
jmp dword [eax*4 + 0x40e844]
mov ecx, dword [esi + 0x28c]
call fcn.00430cb0
jmp case.default.0x40e4b5
mov ecx, dword [esi + 0x290]
call fcn.00423310
jmp case.default.0x40e4b5
mov ecx, dword [esi + 0x294]
call fcn.00427ef0
jmp case.default.0x40e4b5
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push 4
push edx
call fcn.0040fd00
add esp, 8
call fcn.00404670
mov edi, eax
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebp
call fcn.0042cba0
call fcn.00404670
add esp, 0xc
cmp eax, edi
jle 0x40e534
mov ecx, dword [esi + 0x298]
call fcn.00424040
test al, al
je 0x40e390
mov ecx, dword [esi + 0x298]
call fcn.00424950
mov ecx, dword [esi + 0x298]
call fcn.00423ce0
jmp case.default.0x40e4b5
mov ecx, dword [esi + 0x29c]
call fcn.00402010
jmp case.default.0x40e4b5
mov ecx, dword [esi + 0x2a0]
add ecx, 0x188
push ecx
mov ecx, 0x493354
call fcn.004290a0
mov ecx, dword [esi + 0x2a0]
call fcn.00427000
jmp case.default.0x40e4b5
mov ecx, dword [esi + 0x2a4]
call fcn.0041cab0
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cba0
call fcn.00410210
mov dword [esi + 0x2ac], eax
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebp
call fcn.0042cba0
call fcn.00410210
sub eax, ebx
add esp, 0xc
cmp eax, 6
ja case.default.0x40e5c5
jmp dword [eax*4 + 0x40e860]
mov ecx, dword [esi + 0x28c]
mov byte [esi + 0x228], 0
call fcn.00430ca0
jmp case.default.0x40e5c5
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esi + 0x290]
call fcn.00422ee0
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.00422eb0
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040df60
cmp byte [0x4932e5], 0
jne 0x40e644
push 0
push 0x3e9
mov ecx, esi
call fcn.00438e3c
mov ecx, eax
call fcn.00439034
mov ecx, dword [esi + 0x290]
call fcn.004232d0
jmp case.default.0x40e5c5
mov ecx, dword [esi + 0x294]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00427b60
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.00427b30
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040df60
mov ecx, dword [esi + 0x294]
call fcn.00427ee0
jmp case.default.0x40e5c5
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00423f10
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.00423ee0
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040df60
mov ecx, dword [esi + 0x298]
call fcn.00424940
jmp case.default.0x40e5c5
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.0040df60
mov ecx, dword [esi + 0x29c]
call fcn.00402000
jmp case.default.0x40e5c5
mov ecx, dword [esi + 0x2a0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00426ef0
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.00426ec0
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040df60
mov ecx, dword [esi + 0x2a0]
call fcn.00426ff0
jmp case.default.0x40e5c5
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041c940
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.0041c910
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040df60
push 0
lea ecx, [esi + 0x18c]
call fcn.00439034
push 0
lea ecx, [esi + 0x100]
call fcn.00439034
mov ecx, dword [esi + 0x2a4]
call fcn.0041ca40
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.0044f4be
add esp, 0x150
ret 4