Function at 0x40cb80
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b184e
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x2ec]
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x616870]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x168]
call fcn.00413a40
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x168]
call fcn.00413b40
lea ecx, [ebp - 0x168]
call fcn.00413be0
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x40cd8a
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x168]
call fcn.00413c90
mov byte [ebp - 4], 1
push 0x5c2f68
lea eax, [ebp - 0x194]
push eax
call fcn.004130e0
add esp, 8
test eax, eax
jne 0x40cc48
push 0x5c2f64
lea eax, [ebp - 0x194]
push eax
call fcn.004130e0
add esp, 8
test eax, eax
je 0x40cc59
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00410c50
jmp 0x40cbe4
lea ecx, [ebp - 0x168]
call fcn.00413c50
test eax, eax
je 0x40cce7
mov eax, dword [ebp + 8]
and eax, 2
jne 0x40cc84
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00410c50
jmp 0x40cbe4
push 0x40
call fcn.004477b0
add esp, 4
mov dword [ebp - 0x2d4], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2d4], 0
je 0x40ccbf
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2d4]
call fcn.0040c410
mov dword [ebp - 0x2e8], eax
jmp 0x40ccc9
mov dword [ebp - 0x2e8], 0
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2e0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x174], eax
jmp 0x40cd64
mov eax, dword [ebp + 8]
and eax, 1
jne 0x40cd03
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00410c50
jmp 0x40cbe4
push 0x18
call fcn.004477b0
add esp, 4
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2bc], 0
je 0x40cd3e
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2bc]
call fcn.004106b0
mov dword [ebp - 0x2e8], eax
jmp 0x40cd48
mov dword [ebp - 0x2e8], 0
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2c8], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x174]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.0040d5a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.00410c50
jmp 0x40cbe4
lea ecx, [ebp - 0x1a8]
call fcn.0040d750
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2b0]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.0040d4b0
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2ec]
push edx
lea ecx, [ebp - 0x1a8]
call fcn.0040c870
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b0]
call fcn.0040c570
jmp 0x40cdef
lea ecx, [ebp - 0x1a8]
call fcn.0040d7e0
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.0040d530
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2ec]
push edx
lea ecx, [ebp - 0x1a8]
call fcn.0040d890
mov byte [ebp - 0x299], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.0040c570
movzx eax, byte [ebp - 0x299]
test eax, eax
je 0x40cee7
lea ecx, [ebp - 0x1a8]
call fcn.0040d7a0
mov eax, dword [eax]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
call fcn.0040cfa0
test eax, eax
je 0x40cee2
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x174]
call fcn.00410860
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2ec]
call fcn.00412c40
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, esp
call fcn.00544880
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00410c50
push 3
mov ecx, dword [ebp - 0x174]
call fcn.0040cb80
mov esi, esp
push 0x5c2f64
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, esp
call fcn.00544880
jmp 0x40cde4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
call fcn.0040c570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00413ae0
push edx
mov ecx, ebp
push eax
lea edx, [0x40cf44]
call fcn.005448b0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544870
add esp, 0x2ec
cmp ebp, esp
call fcn.00544880
mov esp, ebp
pop ebp
ret 4