Function at 0x40d340
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x466a02
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 0x40d3c7
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x1c], esp
push 7
push eax
mov dword [esi + 0x2ac], 6
call fcn.0040ec00
add esp, 8
mov ecx, 0x48e748
call fcn.0041bcc0
mov ecx, dword [0x48e748]
push ecx
mov ecx, 0x48e748
mov edi, eax
call fcn.0041b400
mov eax, dword [esi + 0x2ac]
cmp eax, 6
jne 0x40d489
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00428df0
call fcn.0040f100
add esp, 0xc
cmp eax, 7
jne 0x40d489
mov eax, dword [esi + 0x29c]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x1c]
push 0x12c
push ecx
call fcn.0044bb0e
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d420
sub eax, edx
cmp eax, 3
jge 0x40d43d
mov ecx, 0x48e748
call fcn.0041b4c0
jmp case.default.0x40d5c4
cmp eax, 4
jle 0x40d450
cmp byte [esp + eax + 0x17], 0x5c
lea eax, [esp + eax + 0x17]
jne 0x40d450
mov byte [eax], 0
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004251f0
call fcn.004045d0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40d42e
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x48e73c
call fcn.00425330
push 1
push 0x3e9
mov ecx, esi
mov byte [esi + 0x228], 1
call fcn.00434146
mov ecx, eax
call fcn.0043436a
mov eax, dword [esi + 0x2ac]
dec eax
cmp eax, 6
ja case.default.0x40d4b5
jmp dword [eax*4 + 0x40d848]
mov ecx, dword [esi + 0x28c]
call fcn.0042cc90
jmp case.default.0x40d4b5
mov ecx, dword [esi + 0x290]
call fcn.00420070
jmp case.default.0x40d4b5
mov ecx, dword [esi + 0x294]
call fcn.004243c0
jmp case.default.0x40d4b5
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push 4
push edx
call fcn.0040ec00
add esp, 8
call fcn.00403bc0
mov ebp, eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00428df0
call fcn.00403bc0
add esp, 0xc
cmp eax, ebp
jle 0x40d534
mov ecx, dword [esi + 0x298]
call fcn.00420af0
test al, al
je 0x40d42e
mov ecx, dword [esi + 0x298]
call fcn.00421400
mov ecx, dword [esi + 0x298]
call fcn.00420790
jmp case.default.0x40d4b5
mov ecx, dword [esi + 0x29c]
call fcn.00401e00
jmp case.default.0x40d4b5
mov ecx, dword [esi + 0x2a0]
add ecx, 0x188
push ecx
mov ecx, 0x48d374
call fcn.004252e0
mov ecx, dword [esi + 0x2a0]
call fcn.004237a0
jmp case.default.0x40d4b5
mov ecx, dword [esi + 0x2a4]
call fcn.0041afb0
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00428df0
call fcn.0040f100
mov dword [esi + 0x2ac], eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00428df0
call fcn.0040f100
dec eax
add esp, 0xc
cmp eax, 6
ja case.default.0x40d5c4
jmp dword [eax*4 + 0x40d864]
mov ecx, dword [esi + 0x28c]
mov byte [esi + 0x228], 0
call fcn.0042cc80
jmp case.default.0x40d5c4
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [esi + 0x290]
call fcn.0041fc40
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.0041fc10
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d2b0
cmp byte [0x48d265], 0
jne 0x40d647
push 0
push 0x3e9
mov ecx, esi
call fcn.00434146
mov ecx, eax
call fcn.0043436a
mov ecx, dword [esi + 0x290]
call fcn.00420030
jmp case.default.0x40d5c4
mov ecx, dword [esi + 0x294]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00424030
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.00424000
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d2b0
mov ecx, dword [esi + 0x294]
call fcn.004243b0
jmp case.default.0x40d5c4
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004209c0
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.00420990
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d2b0
mov ecx, dword [esi + 0x298]
call fcn.004213f0
jmp case.default.0x40d5c4
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.0040d2b0
mov ecx, dword [esi + 0x29c]
call fcn.00401df0
jmp case.default.0x40d5c4
mov ecx, dword [esi + 0x2a0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00423690
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.00423660
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d2b0
mov ecx, dword [esi + 0x2a0]
call fcn.00423790
jmp case.default.0x40d5c4
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0041ae40
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.0041ae10
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d2b0
push 0
lea ecx, [esi + 0x18c]
call fcn.0043436a
push 0
lea ecx, [esi + 0x100]
call fcn.0043436a
mov ecx, dword [esi + 0x2a4]
call fcn.0041af40
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.0044b4c8
add esp, 0x144
ret 4