Function at 0x40f460
Capabilities:
Check if file exists
Create directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ee4d
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x5d1858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x470], esi
push str._EffectExtractor___ExtractorStock::CCDGCPExtractor::Extract_BEGIN
push 0x729
call fcn.00401d90
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00402240
lea edi, [eax + 0x10]
mov dword [ebp - 0x484], edi
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.00402240
lea ebx, [eax + 0x10]
add esp, 0x10
mov dword [ebp - 0x480], ebx
mov dword [esi + 0x18], 0x20
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov byte [ebp - 4], 1
call esi
test eax, eax
jne 0x40f4fa
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
call esi
test eax, eax
jne 0x40f520
push edi
push str._EffectExtractor___ExtractorStock::CCDGCPExtractor::Extract_unpackFileName:__s_not_exist
push 0x735
call fcn.00401d90
add esp, 0xc
mov byte [ebp - 0x469], 0
jmp 0x40f78c
lea eax, [ebx - 0x10]
push eax
call fcn.00402240
lea esi, [eax + 0x10]
mov dword [ebp - 0x48c], esi
push esi
push edi
mov byte [ebp - 4], 2
call fcn.004163a0
add esp, 0xc
test eax, eax
jne 0x40f56f
push str._EffectExtractor___ExtractorStock::CCDGCPExtractor::Extract_Unzip_Failed
push 0x73d
call fcn.00401d90
mov eax, dword [ebp - 0x470]
add esp, 8
mov dword [eax + 0x20], 2
mov byte [ebp - 0x469], 0
jmp 0x40f76e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00543da0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x573cd8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x474], eax
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f5e3
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x470], eax
mov ebx, dword [ebp - 0x474]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, dword [ebp - 0x468]
and eax, 0x10
je 0x40f639
cmp word [ebp - 0x43c], 0x2e
jne 0x40f639
mov cx, word [ebp - 0x43a]
test cx, cx
je 0x40f703
cmp cx, 0x2e
jne 0x40f639
cmp word [ebp - 0x438], 0
je 0x40f703
test eax, eax
je 0x40f703
lea eax, [esi - 0x10]
push eax
call fcn.00402240
add eax, 0x10
mov dword [ebp - 0x478], eax
push 0x574218
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x47c]
push eax
mov byte [ebp - 4], 4
call fcn.0040e6d0
lea ecx, [ebp - 0x43c]
push ecx
push eax
lea eax, [ebp - 0x488]
push eax
mov byte [ebp - 4], 5
call fcn.0040e6d0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 6
call fcn.00401fa0
mov edx, dword [ebp - 0x488]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f6bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f6e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x478]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f703
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x468]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f600
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_FindClose]
push str._EffectExtractor___ExtractorStock::CDGCPExtractor::Extract_END
push 0x762
call fcn.00401d90
mov edx, dword [ebp - 0x470]
add edx, 0xfffffff0
add esp, 8
mov byte [ebp - 0x469], 1
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
mov edi, dword [ebp - 0x484]
mov ebx, dword [ebp - 0x480]
test ecx, ecx
jg 0x40f76e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f78c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f7ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40f7ca
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x469]
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.00543154
mov esp, ebp
pop ebp
ret