Function at 0x40cbc0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66a4e4
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x71cf78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x824], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x820], esi
push eax
mov dword [ebp - 4], 0
call fcn.00407fc0
add esp, 4
push eax
lea ecx, [esi + 0x688]
mov byte [ebp - 4], 1
call fcn.0040a060
mov edx, dword [ebp - 0x81c]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40cd1b
mov edx, dword [esi + 0x688]
lea ebx, [esi + 0x688]
mov dword [ebp - 4], 0xffffffff
cmp dword [edx - 4], 1
jle 0x40cd40
push dword [edx - 0xc]
mov ecx, ebx
call fcn.00402c10
mov edx, dword [ebx]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x81c], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cd50
sub ecx, dword [ebp - 0x81c]
cmp byte [edx + ecx - 1], 0x5c
je 0x40cdac
push 0x690b4c
lea eax, [ebp - 0x81c]
push ebx
push eax
call fcn.00406fd0
add esp, 0xc
push eax
mov ecx, ebx
mov dword [ebp - 4], 5
call fcn.0040a060
mov edx, dword [ebp - 0x81c]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cdac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x68ffbf
push dword [ebx]
call fcn.0062c5cc
add esp, 8
test eax, eax
je 0x40d021
push 0x400
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00423a7b
mov ecx, eax
test ecx, ecx
je 0x40d03b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x820]
call fcn.00402ad0
test al, al
jne 0x40ce3c
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ce20
sub ecx, edx
lea eax, [ebp - 0x414]
push ecx
push eax
lea ecx, [ebp - 0x820]
call fcn.00408790
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 7
push eax
call fcn.0040c7d0
add esp, 4
mov esi, eax
call fcn.00423a7b
mov ecx, eax
test ecx, ecx
je 0x40d045
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push esi
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 8
call fcn.00402ad0
test al, al
jne 0x40cea8
test esi, esi
jne 0x40ce8d
xor ecx, ecx
jmp 0x40ce9b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ce92
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x818]
call fcn.00408790
mov edi, dword [ebp - 0x818]
lea ecx, [ebp - 0x820]
push 0x68ffbf
push edi
mov byte [ebp - 4], 9
call fcn.004106f0
mov esi, dword [ebp - 0x820]
test esi, esi
je 0x40d017
push esi
push dword [ebx]
call fcn.0062f446
add esp, 8
test eax, eax
je 0x40cf3f
call fcn.00423a7b
mov ecx, eax
test ecx, ecx
je 0x40d017
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
push dword [ebx]
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 0xa
push 0x691068
push eax
call fcn.00402cc0
mov esi, dword [ebp - 0x824]
add esp, 0xc
mov ecx, esi
push 0x24
push 0x6910c0
push dword [ebp - 0x81c]
call fcn.0042847a
cmp eax, 7
jne 0x40d056
jmp 0x40d04f
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x82c], esp
mov ebx, esp
mov dword [ebp - 0x828], ebx
push eax
mov dword [ebp - 0x81c], eax
call fcn.00407710
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x824]
mov edi, esp
add ebx, 0x688
mov dword [ebp - 0x828], esp
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x830], edi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00407710
add eax, 0x10
mov dword [edi], eax
mov eax, esp
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x818]
push ecx
push ebx
push eax
call fcn.0040a0d0
mov ecx, dword [ebp - 0x824]
add esp, 0xc
mov byte [ebp - 4], 9
call fcn.0040bdc0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x81c]
or edi, 0xffffffff
mov byte [ebp - 4], 7
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cfdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40cffb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006026e7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004020e0
push 0
push 0x691044
push 0x69104c
mov ecx, esi
call fcn.0042847a
push 0
call fcn.0062ce35
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
push 0
call fcn.0062ce35
push ecx
mov ecx, esp
mov dword [ebp - 0x824], esp
push 0x68ffbf
call fcn.00406f30
push ecx
mov eax, esp
mov dword [ebp - 0x828], esp
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0xb
push ecx
push ebx
push eax
call fcn.0040a0d0
add esp, 8
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x414]
mov ecx, esp
push eax
call fcn.00406f30
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.0040c260
push 0
call fcn.0062ce35
int3