Function at 0x40d190
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x466842
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 0x40d217
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x1c], esp
push 7
push eax
mov dword [esi + 0x2ac], 6
call fcn.0040ea50
add esp, 8
mov ecx, 0x48e748
call fcn.0041bab0
mov ecx, dword [0x48e748]
push ecx
mov ecx, 0x48e748
mov edi, eax
call fcn.0041b1f0
mov eax, dword [esi + 0x2ac]
cmp eax, 6
jne 0x40d2d9
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00428bc0
call fcn.0040ef50
add esp, 0xc
cmp eax, 7
jne 0x40d2d9
mov eax, dword [esi + 0x29c]
mov eax, dword [eax + 0xa14]
push eax
lea ecx, [esp + 0x1c]
push 0x12c
push ecx
call fcn.0044b8de
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d270
sub eax, edx
cmp eax, 3
jge 0x40d28d
mov ecx, 0x48e748
call fcn.0041b2b0
jmp case.default.0x40d414
cmp eax, 4
jle 0x40d2a0
cmp byte [esp + eax + 0x17], 0x5c
lea eax, [esp + eax + 0x17]
jne 0x40d2a0
mov byte [eax], 0
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00424fe0
call fcn.00404530
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40d27e
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x48e73c
call fcn.00425120
push 1
push 0x3e9
mov ecx, esi
mov byte [esi + 0x228], 1
call fcn.00433f16
mov ecx, eax
call fcn.0043413a
mov eax, dword [esi + 0x2ac]
dec eax
cmp eax, 6
ja case.default.0x40d305
jmp dword [eax*4 + 0x40d698]
mov ecx, dword [esi + 0x28c]
call fcn.0042ca60
jmp case.default.0x40d305
mov ecx, dword [esi + 0x290]
call fcn.0041fe90
jmp case.default.0x40d305
mov ecx, dword [esi + 0x294]
call fcn.004241d0
jmp case.default.0x40d305
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push 4
push edx
call fcn.0040ea50
add esp, 8
call fcn.00403b70
mov ebp, eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00428bc0
call fcn.00403b70
add esp, 0xc
cmp eax, ebp
jle 0x40d384
mov ecx, dword [esi + 0x298]
call fcn.00420900
test al, al
je 0x40d27e
mov ecx, dword [esi + 0x298]
call fcn.00421210
mov ecx, dword [esi + 0x298]
call fcn.004205a0
jmp case.default.0x40d305
mov ecx, dword [esi + 0x29c]
call fcn.00401df0
jmp case.default.0x40d305
mov ecx, dword [esi + 0x2a0]
add ecx, 0x188
push ecx
mov ecx, 0x48d374
call fcn.004250d0
mov ecx, dword [esi + 0x2a0]
call fcn.004235b0
jmp case.default.0x40d305
mov ecx, dword [esi + 0x2a4]
call fcn.0041ada0
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov ecx, edi
call fcn.00428bc0
call fcn.0040ef50
mov dword [esi + 0x2ac], eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00428bc0
call fcn.0040ef50
dec eax
add esp, 0xc
cmp eax, 6
ja case.default.0x40d414
jmp dword [eax*4 + 0x40d6b4]
mov ecx, dword [esi + 0x28c]
mov byte [esi + 0x228], 0
call fcn.0042ca50
jmp case.default.0x40d414
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [esi + 0x290]
call fcn.0041fa60
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.0041fa30
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d100
cmp byte [0x48d265], 0
jne 0x40d497
push 0
push 0x3e9
mov ecx, esi
call fcn.00433f16
mov ecx, eax
call fcn.0043413a
mov ecx, dword [esi + 0x290]
call fcn.0041fe50
jmp case.default.0x40d414
mov ecx, dword [esi + 0x294]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00423e40
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.00423e10
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d100
mov ecx, dword [esi + 0x294]
call fcn.004241c0
jmp case.default.0x40d414
mov ecx, dword [esi + 0x298]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004207d0
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.004207a0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d100
mov ecx, dword [esi + 0x298]
call fcn.00421200
jmp case.default.0x40d414
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, dword [esi + 0x29c]
call fcn.00401ce0
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.00401cb0
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d100
mov ecx, dword [esi + 0x29c]
call fcn.00401de0
jmp case.default.0x40d414
mov ecx, dword [esi + 0x2a0]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004234a0
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.00423470
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d100
mov ecx, dword [esi + 0x2a0]
call fcn.004235a0
jmp case.default.0x40d414
mov ecx, dword [esi + 0x2a4]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0041ac30
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.0041ac00
mov ecx, esi
mov dword [esp + 0x168], 0xffffffff
call fcn.0040d100
push 0
lea ecx, [esi + 0x18c]
call fcn.0043413a
push 0
lea ecx, [esi + 0x100]
call fcn.0043413a
mov ecx, dword [esi + 0x2a4]
call fcn.0041ad30
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.0044b298
add esp, 0x144
ret 4