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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eef9
mov eax, dword fs:[0]
push eax
sub esp, 0x494
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 - 0x488], esi
push str._EffectExtractor___ExtractorStock::CDZSExtractor::Extract_BEGIN
push 0x46a
call fcn.00401d90
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00402240
lea edi, [eax + 0x10]
mov dword [ebp - 0x494], edi
push 0x574218
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x4a0]
push eax
mov dword [ebp - 4], 0
call fcn.0040e6d0
push 0x5d4230
push eax
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 1
call fcn.004042b0
add esp, 0x24
mov edx, dword [ebp - 0x4a0]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4129a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x474]
mov dword [esi + 0x18], 0x12
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x4129cc
push eax
push dword [ebp - 0x474]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
call esi
test eax, eax
jne 0x4129f2
push edi
push str._EffectExtractor___ExtractorStock::CDZSExtractor::Extract_unpackFileName:__s_not_exist
push 0x476
call fcn.00401d90
add esp, 0xc
mov byte [ebp - 0x469], 0
jmp 0x412d95
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff0
push eax
call fcn.00402240
lea esi, [eax + 0x10]
mov dword [ebp - 0x480], esi
push 0x574218
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x49c]
push eax
mov byte [ebp - 4], 4
call fcn.0040e6d0
push 0x5d421c
push eax
lea eax, [ebp - 0x470]
push eax
mov byte [ebp - 4], 5
call fcn.004042b0
add esp, 0x1c
mov edx, dword [ebp - 0x49c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412a62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412a7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x470]
push edi
call fcn.004163a0
add esp, 8
test eax, eax
jne 0x412abd
push str._EffectExtractor___ExtractorStock::CDZSExtractor::Extract_Unzip_Failed
push 0x47e
call fcn.00401d90
mov ecx, dword [ebp - 0x488]
add esp, 8
mov dword [ecx + 0x20], 2
mov byte [ebp - 0x469], 0
jmp 0x412d72
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00543da0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x470]
push eax
call esi
push 0x573cd8
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x48c], eax
xor eax, eax
mov dword [ebp - 0x484], eax
xor esi, esi
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x412b3e
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x480], eax
mov edi, dword [ebp - 0x48c]
mov byte [ebp - 4], 9
jmp 0x412b60
mov eax, dword [ebp - 0x468]
and eax, 0x10
je 0x412b99
cmp word [ebp - 0x43c], 0x2e
jne 0x412b99
mov cx, word [ebp - 0x43a]
test cx, cx
je 0x412c70
cmp cx, 0x2e
jne 0x412b99
cmp word [ebp - 0x438], 0
je 0x412c70
test eax, eax
je 0x412c6f
mov eax, dword [ebp - 0x470]
inc dword [ebp - 0x484]
add eax, 0xfffffff0
push eax
call fcn.00402240
add eax, 0x10
mov dword [ebp - 0x478], eax
push 0x574218
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x490]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040e6d0
lea ecx, [ebp - 0x43c]
push ecx
push eax
lea eax, [ebp - 0x498]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040e6d0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0xc
call fcn.00401fa0
mov edx, dword [ebp - 0x498]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412c29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412c4c
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], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412c6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412b60
push dword [ebp - 0x48c]
mov dword [ebp - 0x478], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x5d4200]
lea eax, [ebp - 0x47c]
push dword [ebp - 0x474]
push eax
call fcn.004148e0
add esp, 0xc
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
add ecx, 4
push eax
mov byte [ebp - 4], 0xd
call fcn.00401fa0
cmp dword [ebp - 0x484], 1
mov esi, dword [ebp - 0x480]
mov edi, dword [ebp - 0x494]
jne 0x412d07
cmp dword [ebp - 0x478], 1
jne 0x412d07
push dword [ebp - 0x47c]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 0x470]
call fcn.00415670
add esp, 4
jmp 0x412d19
push dword [ebp - 0x47c]
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push str._EffectExtractor___ExtractorStock::CDZSExtractor::Extract_END
push 0x4b3
call fcn.00401d90
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
add esp, 8
mov byte [ebp - 0x469], 1
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412d55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412d72
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x470]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412d95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x474]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412db8
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 0x412dd6
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