Function at 0x40c200
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534a3a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x584cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
mov esi, 1
push ecx
lea edx, [ebp - 0x24]
xor edi, edi
mov dword [ebp - 4], esi
push edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
call fcn.00403f60
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.0040fcc4
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c26f
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.0040fcc4
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c29c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x1c
mov byte [ebp - 4], 4
call fcn.0040f71c
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
cmp eax, edi
je 0x40c2d2
mov ecx, eax
call fcn.0041ed82
mov edi, eax
mov dword [ebp - 0x18], edi
jmp 0x40c2d5
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
cmp dword [eax - 4], esi
jle 0x40c2f0
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00402190
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
test esi, esi
je 0x40c724
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x10]
push str.Fuji
push eax
call fcn.0040b340
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [ebx + 0xa0]
push eax
call fcn.00413ab4
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c34d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c724
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push 0
push 0
mov ecx, edi
call eax
mov esi, eax
test esi, esi
je 0x40c724
cmp dword [ebp - 0x2c], 0
je 0x40c6e8
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
mov edx, dword [edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
test eax, eax
jne 0x40c6de
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
push 0x10
mov ecx, edi
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
test eax, eax
je 0x40c56d
lea eax, [ebp - 0x30]
push eax
call edx
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov edi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40c40f
cmp dword [edi + 0xc], 0
jl 0x40c402
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40c402
push eax
call fcn.004020f0
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c3f7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebp - 0x14], ecx
jmp 0x40c40f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401ff0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push 0x56236c
push edx
call fcn.0040b340
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, dword [ebx + 0xa0]
push eax
call fcn.00413a8a
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c47c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c721
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x38]
push 0x56236c
push edx
call fcn.0040b340
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [eax]
mov ecx, dword [ebx + 0xa0]
push eax
call fcn.00413ab4
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c721
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [edi + edx]
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x28], 0
call fcn.00403f60
add esp, 8
mov edx, esp
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x4c], esp
push 0x561388
push eax
push edx
call fcn.00404070
add esp, 8
lea eax, [ebp + 8]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xb
call fcn.00401e70
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.0040c200
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c55f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x18]
jmp 0x40c6de
lea eax, [ebp - 0x40]
push eax
call edx
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov esi, dword [ebp - 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40c5d2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c5c2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c5c2
push eax
call fcn.004020f0
mov dword [ebp - 0x10], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c5b7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebp - 0x1c], ecx
jmp 0x40c5cf
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401ff0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c5f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x48]
push 0x56236c
push edx
call fcn.0040b340
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
push 0x56236c
push ecx
mov byte [ebp - 4], 0xd
call fcn.0040b340
add esp, 0x18
push 1
mov byte [ebp - 4], 0xe
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebx + 0xa0]
push 2
push esi
push eax
call fcn.00413ac9
mov esi, eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c683
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c724
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
add eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fnstcw word [ebp - 0xe]
movzx eax, word [ebp - 0xe]
fmul qword [0x562f38]
or eax, 0xc00
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x13c]
fidiv dword [ebp + 0x10]
fldcw word [ebp - 0x4c]
fistp qword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
push edx
push 0x402
push eax
fldcw word [ebp - 0xe]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
test esi, esi
jne 0x40c36c
jmp 0x40c724
test esi, esi
je 0x40c724
push 0x562370
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
test esi, esi
je 0x40c724
mov ecx, dword [ebx + 0xa0]
push 0x562370
call fcn.00413ab4
mov esi, eax
test esi, esi
je 0x40c724
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40c724
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x40c724
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x40c72f
mov ecx, edi
call fcn.0041ea87
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c752
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c798
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14