Function at 0x40e3c0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x46ac0d
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 0x40e448
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push 7
push eax
mov dword [esi + 0x2ac], 6
call fcn.0040fed0
add esp, 8
mov ecx, 0x4947c0
call fcn.0041d930
mov ecx, dword [0x4947c0]
push ecx
mov ecx, 0x4947c0
mov ebp, eax
call fcn.0041d070
mov eax, dword [esi + 0x2ac]
cmp eax, 6
jne 0x40e5a6
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cc60
call fcn.004103e0
add esp, 0xc
cmp eax, 7
jne 0x40e5a6
mov eax, dword [esi + 0x29c]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x2c]
push 0x12c
push ecx
call fcn.0044fb53
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e4a0
sub eax, edx
mov edi, eax
cmp edi, 3
jge 0x40e4bf
mov ecx, 0x4947c0
call fcn.0041d130
jmp case.default.0x40e6e5
push 0x473674
push 0x37
push 4
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push 0
push edx
call fcn.0040fed0
add esp, 8
lea eax, [esp + 0x34]
push eax
mov ecx, 0x4947c0
call fcn.0041d310
mov ecx, eax
mov dword [esp + 0x164], 0
call fcn.004291c0
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x160], 0xffffffff
call fcn.00429130
test bl, bl
je 0x40e556
cmp byte [0x4932e9], 0
jne 0x40e556
lea ecx, [esp + 0x28]
push ecx
call fcn.0040cb70
add esp, 4
test al, al
je 0x40e556
mov ecx, 0x4947c0
call fcn.0041d130
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.0x40e6e5
cmp edi, 4
jle 0x40e569
cmp byte [esp + edi + 0x27], 0x5c
lea edi, [esp + edi + 0x27]
jne 0x40e569
mov byte [edi], 0
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00429050
call fcn.00404f00
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40e4b0
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x49487c
call fcn.00429190
mov ebx, 1
push ebx
push 0x3e9
mov ecx, esi
mov byte [esi + 0x228], bl
call fcn.00438ea3
mov ecx, eax
call fcn.0043909b
mov eax, dword [esi + 0x2ac]
dec eax
cmp eax, 6
ja case.default.0x40e5d5
jmp dword [eax*4 + 0x40e964]
mov ecx, dword [esi + 0x28c]
call fcn.00430cf0
jmp case.default.0x40e5d5
mov ecx, dword [esi + 0x290]
call fcn.004233c0
jmp case.default.0x40e5d5
mov ecx, dword [esi + 0x294]
call fcn.00427f90
jmp case.default.0x40e5d5
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push 4
push edx
call fcn.0040fed0
add esp, 8
call fcn.0040cff0
mov edi, eax
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebp
call fcn.0042cc60
call fcn.0040cff0
add esp, 0xc
cmp eax, edi
jle 0x40e654
mov ecx, dword [esi + 0x298]
call fcn.004240f0
test al, al
je 0x40e4b0
mov ecx, dword [esi + 0x298]
call fcn.00424a00
mov ecx, dword [esi + 0x298]
call fcn.00423d90
jmp case.default.0x40e5d5
mov ecx, dword [esi + 0x29c]
call fcn.00402010
jmp case.default.0x40e5d5
mov ecx, dword [esi + 0x2a0]
add ecx, 0x188
push ecx
mov ecx, 0x493354
call fcn.00429140
mov ecx, dword [esi + 0x2a0]
call fcn.004270a0
jmp case.default.0x40e5d5
mov ecx, dword [esi + 0x2a4]
call fcn.0041cb50
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.0042cc60
call fcn.004103e0
mov dword [esi + 0x2ac], eax
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebp
call fcn.0042cc60
call fcn.004103e0
sub eax, ebx
add esp, 0xc
cmp eax, 6
ja case.default.0x40e6e5
jmp dword [eax*4 + 0x40e980]
mov ecx, dword [esi + 0x28c]
mov byte [esi + 0x228], 0
call fcn.00430ce0
jmp case.default.0x40e6e5
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esi + 0x290]
call fcn.00422f90
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.00422f60
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e080
cmp byte [0x4932e5], 0
jne 0x40e764
push 0
push 0x3e9
mov ecx, esi
call fcn.00438ea3
mov ecx, eax
call fcn.0043909b
mov ecx, dword [esi + 0x290]
call fcn.00423380
jmp case.default.0x40e6e5
mov ecx, dword [esi + 0x294]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00427c00
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.00427bd0
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e080
mov ecx, dword [esi + 0x294]
call fcn.00427f80
jmp case.default.0x40e6e5
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00423fc0
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.00423f90
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e080
mov ecx, dword [esi + 0x298]
call fcn.004249f0
jmp case.default.0x40e6e5
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.0040e080
mov ecx, dword [esi + 0x29c]
call fcn.00402000
jmp case.default.0x40e6e5
mov ecx, dword [esi + 0x2a0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00426f90
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.00426f60
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e080
mov ecx, dword [esi + 0x2a0]
call fcn.00427090
jmp case.default.0x40e6e5
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041c9e0
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.0041c9b0
mov ecx, esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0040e080
push 0
lea ecx, [esi + 0x18c]
call fcn.0043909b
push 0
lea ecx, [esi + 0x100]
call fcn.0043909b
mov ecx, dword [esi + 0x2a4]
call fcn.0041cae0
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.0044f50d
add esp, 0x150
ret 4