Function at 0x40bec0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462502
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebp
mov ebp, dword [esp + 0x148]
push esi
mov esi, ecx
mov eax, dword [esi + 0x204]
cmp eax, 6
push edi
jne 0x40bfab
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, ebp
call fcn.00425d80
call fcn.0040d880
add esp, 0xc
cmp eax, 7
jne 0x40bfab
mov ecx, dword [esi + 0x1f4]
mov eax, dword [ecx + 0xa14]
push eax
lea edx, [esp + 0x18]
push 0x12c
push edx
call fcn.0044722f
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bf40
sub eax, edx
cmp eax, 3
jge 0x40bf5f
mov ecx, 0x493500
call fcn.00419eb0
jmp case.default.0x40c0ea
cmp eax, 4
jle 0x40bf72
cmp byte [esp + eax + 0x13], 0x5c
lea eax, [esp + eax + 0x13]
jne 0x40bf72
mov byte [eax], 0
sub esp, 0xc
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004226f0
call fcn.00403bc0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40bf50
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4934f4
call fcn.00422860
push 1
push 0x3e9
mov ecx, esi
mov byte [esi + 0x180], 1
call fcn.0042b007
mov ecx, eax
call fcn.0042b204
mov eax, dword [esi + 0x204]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x40bfd9
jmp dword [eax*4 + 0x40c35c]
mov ecx, dword [esi + 0x1e4]
call fcn.00429e20
jmp case.default.0x40bfd9
mov ecx, dword [esi + 0x1e8]
call fcn.0041d360
jmp case.default.0x40bfd9
mov ecx, dword [esi + 0x1ec]
call fcn.00420e90
jmp case.default.0x40bfd9
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x18], esp
push 4
push eax
call fcn.0040d380
add esp, 8
call fcn.0040ab10
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
mov ecx, ebp
mov edi, eax
call fcn.00425d80
call fcn.0040ab10
add esp, 0xc
cmp eax, edi
jle 0x40c058
mov ecx, dword [esi + 0x1f0]
call fcn.0041e700
test al, al
je 0x40bf50
mov ecx, dword [esi + 0x1f0]
call fcn.0041de10
mov ecx, dword [esi + 0x1f0]
call fcn.0041dba0
jmp case.default.0x40bfd9
mov ecx, dword [esi + 0x1f4]
call fcn.004011a0
jmp case.default.0x40bfd9
mov edx, dword [esi + 0x1f8]
add edx, 0x188
push edx
mov ecx, 0x48812c
call fcn.00422610
mov ecx, dword [esi + 0x1f8]
call fcn.004201b0
jmp case.default.0x40bfd9
mov ecx, dword [esi + 0x1fc]
call fcn.00419120
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, ebp
call fcn.00425d80
call fcn.0040d880
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
mov ecx, ebp
mov dword [esi + 0x204], eax
call fcn.00425d80
call fcn.0040d880
sub eax, 1
add esp, 0xc
cmp eax, 6
ja case.default.0x40c0ea
jmp dword [eax*4 + 0x40c378]
mov ecx, dword [esi + 0x1e4]
mov byte [esi + 0x180], 0
call fcn.00429e10
jmp case.default.0x40c0ea
mov ecx, dword [esi + 0x1e8]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0041d2f0
mov ecx, dword [esi + 0x1e8]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x164], 0
call fcn.0041d2c0
mov ecx, esi
mov dword [esp + 0x160], 0xffffffff
call fcn.0040be40
cmp byte [0x488025], 0
jne 0x40c16d
push 0
push 0x3e9
mov ecx, esi
call fcn.0042b007
mov ecx, eax
call fcn.0042b204
mov ecx, dword [esi + 0x1e8]
call fcn.0041d320
jmp case.default.0x40c0ea
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [esi + 0x1ec]
call fcn.00420e50
mov ecx, dword [esi + 0x1ec]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov dword [esp + 0x164], 1
call fcn.00420e20
mov ecx, esi
mov dword [esp + 0x160], 0xffffffff
call fcn.0040be40
mov ecx, dword [esi + 0x1ec]
call fcn.00420e80
jmp case.default.0x40c0ea
mov ecx, dword [esi + 0x1f0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0041ddd0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, dword [esi + 0x1f0]
mov dword [esp + 0x164], 2
call fcn.0041dda0
mov ecx, esi
mov dword [esp + 0x160], 0xffffffff
call fcn.0040be40
mov ecx, dword [esi + 0x1f0]
call fcn.0041de00
jmp case.default.0x40c0ea
mov ecx, dword [esi + 0x1f4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00401150
mov ecx, dword [esi + 0x1f4]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x164], 3
call fcn.00401120
mov ecx, esi
mov dword [esp + 0x160], 0xffffffff
call fcn.0040be40
mov ecx, dword [esi + 0x1f4]
call fcn.00401190
jmp case.default.0x40c0ea
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [esi + 0x1f8]
call fcn.00420160
mov ecx, dword [esi + 0x1f8]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov dword [esp + 0x164], 4
call fcn.00420130
mov ecx, esi
mov dword [esp + 0x160], 0xffffffff
call fcn.0040be40
mov ecx, dword [esi + 0x1f8]
call fcn.004201a0
jmp case.default.0x40c0ea
mov ecx, dword [esi + 0x1fc]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00419070
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, dword [esi + 0x1fc]
mov dword [esp + 0x164], 5
call fcn.00419040
mov ecx, esi
mov dword [esp + 0x160], 0xffffffff
call fcn.0040be40
push 0
lea ecx, [esi + 0x11c]
call fcn.0042b204
push 0
lea ecx, [esi + 0xc8]
call fcn.0042b204
mov ecx, dword [esi + 0x1fc]
call fcn.004190b0
mov ecx, dword [esp + 0x140]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x140
ret 4