Function at 0x40d1c0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x466b32
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0x134], eax
push ebp
push esi
push edi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
cmp byte [0x48d269], 0
mov edi, dword [esp + 0x158]
mov esi, ecx
je 0x40d247
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x1c], esp
push 7
push eax
mov dword [esi + 0x2ac], 6
call fcn.0040ea80
add esp, 8
mov ecx, 0x48e748
call fcn.0041bc50
mov ecx, dword [0x48e748]
push ecx
mov ecx, 0x48e748
mov edi, eax
call fcn.0041b390
mov eax, dword [esi + 0x2ac]
cmp eax, 6
jne 0x40d309
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00428f10
call fcn.0040ef80
add esp, 0xc
cmp eax, 7
jne 0x40d309
mov eax, dword [esi + 0x29c]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x1c]
push 0x12c
push ecx
call fcn.0044bc9e
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d2a0
sub eax, edx
cmp eax, 3
jge 0x40d2bd
mov ecx, 0x48e748
call fcn.0041b450
jmp case.default.0x40d444
cmp eax, 4
jle 0x40d2d0
cmp byte [esp + eax + 0x17], 0x5c
lea eax, [esp + eax + 0x17]
jne 0x40d2d0
mov byte [eax], 0
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00425330
call fcn.00404520
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40d2ae
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x48e73c
call fcn.00425470
push 1
push 0x3e9
mov ecx, esi
mov byte [esi + 0x228], 1
call fcn.004342d2
mov ecx, eax
call fcn.004344f6
mov eax, dword [esi + 0x2ac]
dec eax
cmp eax, 6
ja case.default.0x40d335
jmp dword [eax*4 + 0x40d6c8]
mov ecx, dword [esi + 0x28c]
call fcn.0042ce30
jmp case.default.0x40d335
mov ecx, dword [esi + 0x290]
call fcn.00420010
jmp case.default.0x40d335
mov ecx, dword [esi + 0x294]
call fcn.00424380
jmp case.default.0x40d335
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push 4
push edx
call fcn.0040ea80
add esp, 8
call fcn.00403c30
mov ebp, eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00428f10
call fcn.00403c30
add esp, 0xc
cmp eax, ebp
jle 0x40d3b4
mov ecx, dword [esi + 0x298]
call fcn.00420a90
test al, al
je 0x40d2ae
mov ecx, dword [esi + 0x298]
call fcn.004213a0
mov ecx, dword [esi + 0x298]
call fcn.00420730
jmp case.default.0x40d335
mov ecx, dword [esi + 0x29c]
call fcn.00401e00
jmp case.default.0x40d335
mov ecx, dword [esi + 0x2a0]
add ecx, 0x188
push ecx
mov ecx, 0x48d374
call fcn.00425420
mov ecx, dword [esi + 0x2a0]
call fcn.00423760
jmp case.default.0x40d335
mov ecx, dword [esi + 0x2a4]
call fcn.0041af40
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00428f10
call fcn.0040ef80
mov dword [esi + 0x2ac], eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00428f10
call fcn.0040ef80
dec eax
add esp, 0xc
cmp eax, 6
ja case.default.0x40d444
jmp dword [eax*4 + 0x40d6e4]
mov ecx, dword [esi + 0x28c]
mov byte [esi + 0x228], 0
call fcn.0042ce20
jmp case.default.0x40d444
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [esi + 0x290]
call fcn.0041fbe0
mov ecx, dword [esi + 0x290]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [esp + 0x16c], 0
call fcn.0041fbb0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d130
cmp byte [0x48d265], 0
jne 0x40d4c7
push 0
push 0x3e9
mov ecx, esi
call fcn.004342d2
mov ecx, eax
call fcn.004344f6
mov ecx, dword [esi + 0x290]
call fcn.0041ffd0
jmp case.default.0x40d444
mov ecx, dword [esi + 0x294]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00423ff0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, dword [esi + 0x294]
mov dword [esp + 0x16c], 1
call fcn.00423fc0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d130
mov ecx, dword [esi + 0x294]
call fcn.00424370
jmp case.default.0x40d444
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00420960
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x16c], 2
call fcn.00420930
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d130
mov ecx, dword [esi + 0x298]
call fcn.00421390
jmp case.default.0x40d444
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esi + 0x29c]
call fcn.00401cf0
mov ecx, dword [esi + 0x29c]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x16c], 3
call fcn.00401cc0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d130
mov ecx, dword [esi + 0x29c]
call fcn.00401df0
jmp case.default.0x40d444
mov ecx, dword [esi + 0x2a0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00423650
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, dword [esi + 0x2a0]
mov dword [esp + 0x16c], 4
call fcn.00423620
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d130
mov ecx, dword [esi + 0x2a0]
call fcn.00423750
jmp case.default.0x40d444
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0041add0
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x16c], 5
call fcn.0041ada0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d130
push 0
lea ecx, [esi + 0x18c]
call fcn.004344f6
push 0
lea ecx, [esi + 0x100]
call fcn.004344f6
mov ecx, dword [esi + 0x2a4]
call fcn.0041aed0
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.0044b658
add esp, 0x144
ret 4