Function at 0x40b6e0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x45f2e2
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x484904]
xor eax, esp
mov dword [esp + 0x134], eax
push ebp
push esi
push edi
mov eax, dword [0x484904]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
cmp byte [0x486049], 0
mov edi, dword [esp + 0x158]
mov esi, ecx
je 0x40b767
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x1c], esp
push 7
push eax
mov dword [esi + 0x204], 6
call fcn.0040cb30
add esp, 8
mov ecx, 0x491520
call fcn.00419490
mov ecx, dword [0x491520]
push ecx
mov ecx, 0x491520
mov edi, eax
call fcn.00418850
mov eax, dword [esi + 0x204]
cmp eax, 6
jne 0x40b82b
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00422420
call fcn.0040d030
add esp, 0xc
cmp eax, 7
jne 0x40b82b
mov eax, dword [esi + 0x1f4]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x1c]
push 0x12c
push ecx
call fcn.00444415
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b7c0
sub eax, edx
cmp eax, 3
jge 0x40b7df
mov ecx, 0x491520
call fcn.004193e0
jmp case.default.0x40b96a
cmp eax, 4
jle 0x40b7f2
cmp byte [esp + eax + 0x17], 0x5c
lea eax, [esp + eax + 0x17]
jne 0x40b7f2
mov byte [eax], 0
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0041f4a0
call fcn.00403a30
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40b7d0
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x491514
call fcn.0041f5e0
push 1
push 0x3e9
mov ecx, esi
mov byte [esi + 0x180], 1
call fcn.00427577
mov ecx, eax
call fcn.00427774
mov eax, dword [esi + 0x204]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x40b859
jmp dword [eax*4 + 0x40bbec]
mov ecx, dword [esi + 0x1e4]
call fcn.00418390
jmp case.default.0x40b859
mov ecx, dword [esi + 0x1e8]
call fcn.00418390
jmp case.default.0x40b859
mov ecx, dword [esi + 0x1ec]
call fcn.00418390
jmp case.default.0x40b859
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push 4
push edx
call fcn.0040cb30
add esp, 8
call fcn.00403330
mov ebp, eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00422420
call fcn.00403330
add esp, 0xc
cmp eax, ebp
jle 0x40b8d8
mov ecx, dword [esi + 0x1f0]
call fcn.0041cad0
test al, al
je 0x40b7d0
mov ecx, dword [esi + 0x1f0]
call fcn.00418390
mov ecx, dword [esi + 0x1f0]
call fcn.0041c250
jmp case.default.0x40b859
mov ecx, dword [esi + 0x1f4]
call fcn.00418390
jmp case.default.0x40b859
mov ecx, dword [esi + 0x1f8]
add ecx, 0x188
push ecx
mov ecx, 0x48614c
call fcn.0041f3c0
mov ecx, dword [esi + 0x1f8]
call fcn.00418390
jmp case.default.0x40b859
mov ecx, dword [esi + 0x1fc]
call fcn.00418390
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00422420
call fcn.0040d030
mov dword [esi + 0x204], eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00422420
call fcn.0040d030
sub eax, 1
add esp, 0xc
cmp eax, 6
ja case.default.0x40b96a
jmp dword [eax*4 + 0x40bc08]
mov ecx, dword [esi + 0x1e4]
mov byte [esi + 0x180], 0
call fcn.004162c0
jmp case.default.0x40b96a
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [esi + 0x1e8]
call fcn.004182f0
mov ecx, dword [esi + 0x1e8]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [esp + 0x16c], 0
call fcn.0041bac0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040b650
cmp byte [0x486045], 0
jne 0x40b9ed
push 0
push 0x3e9
mov ecx, esi
call fcn.00427577
mov ecx, eax
call fcn.00427774
mov ecx, dword [esi + 0x1e8]
call fcn.0041baf0
jmp case.default.0x40b96a
mov ecx, dword [esi + 0x1ec]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004182f0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, dword [esi + 0x1ec]
mov dword [esp + 0x16c], 1
call fcn.0041bac0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040b650
mov ecx, dword [esi + 0x1ec]
call fcn.004162c0
jmp case.default.0x40b96a
mov ecx, dword [esi + 0x1f0]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004182f0
mov ecx, dword [esi + 0x1f0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x16c], 2
call fcn.0041bac0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040b650
mov ecx, dword [esi + 0x1f0]
call fcn.004162c0
jmp case.default.0x40b96a
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esi + 0x1f4]
call fcn.004182f0
mov ecx, dword [esi + 0x1f4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x16c], 3
call fcn.0041bac0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040b650
mov ecx, dword [esi + 0x1f4]
call fcn.004162c0
jmp case.default.0x40b96a
mov ecx, dword [esi + 0x1f8]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004182f0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, dword [esi + 0x1f8]
mov dword [esp + 0x16c], 4
call fcn.0041bac0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040b650
mov ecx, dword [esi + 0x1f8]
call fcn.004162c0
jmp case.default.0x40b96a
mov ecx, dword [esi + 0x1fc]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004182f0
mov ecx, dword [esi + 0x1fc]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x16c], 5
call fcn.0041bac0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040b650
push 0
lea ecx, [esi + 0x11c]
call fcn.00427774
push 0
lea ecx, [esi + 0xc8]
call fcn.00427774
mov ecx, dword [esi + 0x1fc]
call fcn.00418320
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00443aa9
add esp, 0x144
ret 4