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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f26e
mov eax, dword fs:[0]
push eax
sub esp, 0xaa8
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 edi, ecx
mov dword [ebp - 0xa7c], edi
push str._EffectExtractor___ExtractorStock::CDZPExtractor::Extract_BEGIN
push 0x190
call fcn.00401d90
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
call fcn.00402240
lea ebx, [eax + 0x10]
mov dword [ebp - 0xab0], ebx
push 0x574218
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0xaac]
push eax
mov dword [ebp - 4], 0
call fcn.0040e6d0
push 0x5d4190
push eax
lea eax, [ebp - 0xa9c]
push eax
mov byte [ebp - 4], 1
call fcn.004042b0
add esp, 0x24
mov edx, dword [ebp - 0xaac]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411285
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xa9c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4112a3
push eax
push dword [ebp - 0xa9c]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4112cd
push ebx
push str._EffectExtractor___ExtractorStock::CDZPExtractor::Extract_unpackFileName:__s_not_exist
push 0x19b
call fcn.00401d90
add esp, 0xc
mov byte [ebp - 0xa89], 0
jmp 0x412882
mov eax, dword [ebp - 0xa9c]
add eax, 0xfffffff0
push eax
call fcn.00402240
lea esi, [eax + 0x10]
mov dword [ebp - 0xa94], esi
push 0x574218
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xab4]
push eax
mov byte [ebp - 4], 4
call fcn.0040e6d0
push 0x5d421c
push eax
lea eax, [ebp - 0xa98]
push eax
mov byte [ebp - 4], 5
call fcn.004042b0
add esp, 0x1c
mov edx, dword [ebp - 0xab4]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41133e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41135e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xa98]
push ebx
call fcn.004163a0
add esp, 8
test eax, eax
jne 0x411396
push str._EffectExtractor___ExtractorStock::CDZPExtractor::Extract_UnZip_Failed
push 0x1a3
call fcn.00401d90
add esp, 8
mov dword [edi + 0x20], 2
mov byte [ebp - 0xa89], 0
jmp 0x41285f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00543da0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [ebp - 0x220]
push dword [ebp - 0xa98]
push eax
call esi
push 0x573cd8
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0xa70]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa74], ecx
call fcn.0042125e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41141d
push 0x80004005
call fcn.004021e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xaa8], eax
mov esi, dword [ebp - 0xa90]
mov byte [ebp - 4], 9
mov edi, 5
mov dword [ebp - 0xaa4], 9
or ebx, 0xffffffff
lea esp, [esp]
mov eax, dword [ebp - 0xa70]
and eax, 0x10
je 0x411489
cmp word [ebp - 0xa44], 0x2e
jne 0x411489
mov cx, word [ebp - 0xa42]
test cx, cx
je 0x4116e9
cmp cx, 0x2e
jne 0x411489
cmp word [ebp - 0xa40], 0
je 0x4116e9
test eax, eax
je 0x411559
mov eax, dword [ebp - 0xa98]
inc dword [ebp - 0xa84]
add eax, 0xfffffff0
push eax
call fcn.00402240
lea esi, [eax + 0x10]
mov dword [ebp - 0xa94], esi
push 0x574218
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa78]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040e6d0
lea ecx, [ebp - 0xa44]
push ecx
push eax
lea eax, [ebp - 0xaa0]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040e6d0
add esp, 0x1c
push eax
lea ecx, [ebp - 0xaa8]
mov byte [ebp - 4], 0xc
call fcn.00401fa0
mov edx, dword [ebp - 0xaa0]
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 0x411519
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa78]
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 0x41153c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411559
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc dword [ebp - 0xa74]
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0xa88]
call fcn.00401e90
push str..gdt
push dword [ebp - 0xa88]
mov byte [ebp - 4], 0xd
call fcn.00544907
add esp, 8
test eax, eax
jne 0x41159b
lea edi, [eax + 6]
jmp 0x4116c0
push str..bkt
push dword [ebp - 0xa88]
call fcn.00544907
add esp, 8
test eax, eax
jne 0x4115ba
lea edi, [eax + 7]
jmp 0x4116c0
push str..tsr
push dword [ebp - 0xa88]
call fcn.00544907
add esp, 8
test eax, eax
jne 0x4115d9
lea edi, [eax + 8]
jmp 0x4116c0
push str..ava
push dword [ebp - 0xa88]
call fcn.00544907
add esp, 8
test eax, eax
jne 0x411610
lea eax, [ebp - 0xa44]
push eax
push str.EditableModel.ava
call fcn.00544907
add esp, 8
test eax, eax
jne 0x411610
lea edi, [eax + 9]
jmp 0x4116c0
push str..ava
push dword [ebp - 0xa88]
call fcn.00544907
add esp, 8
test eax, eax
jne 0x41168a
lea edi, [eax + 0xa]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa44]
push eax
call fcn.005442f0
add esp, 0x14
xor esi, esi
jmp 0x411660
lea eax, [ebp - 0x420]
push eax
push dword [esi*4 + 0x5cc46c]
call fcn.00544907
add esp, 8
test eax, eax
je 0x411682
inc esi
cmp esi, 9
jb 0x411660
jmp 0x4116c0
mov dword [ebp - 0xaa4], esi
jmp 0x4116c0
push str..hdp
push dword [ebp - 0xa88]
call fcn.00544907
add esp, 8
test eax, eax
jne 0x4116a6
lea edi, [eax + 0xb]
jmp 0x4116c0
push str..art
lea ecx, [ebp - 0xa88]
call fcn.0040e8c0
test eax, eax
mov eax, 0xc
cmove edi, eax
mov edx, dword [ebp - 0xa88]
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 0x4116e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa90]
lea eax, [ebp - 0xa70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411450
push esi
mov dword [ebp - 0xa88], edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0xa84], 1
mov edi, dword [ebp - 0xaa8]
mov ebx, dword [ebp - 0xab0]
jne 0x411faa
mov ecx, dword [ebp - 0xa74]
cmp ecx, 1
jne 0x411faa
push edi
call fcn.0040e8f0
push str.TitleTemplate.xml
lea eax, [ebp - 0xaa8]
push eax
lea eax, [ebp - 0xa90]
push eax
call fcn.0040e6d0
add esp, 0x10
push dword [ebp - 0xa90]
mov byte [ebp - 4], 0xe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4117b8
push str.objectTemplate.xml
lea eax, [ebp - 0xaa8]
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.0040e6d0
add esp, 0xc
push eax
lea ecx, [ebp - 0xa90]
mov byte [ebp - 4], 0xf
call fcn.00401fa0
mov edx, dword [ebp - 0xa78]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4117b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xa90]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040f290
mov ecx, dword [ebp - 0xa9c]
add ecx, 0xfffffff0
mov esi, eax
push ecx
mov dword [ebp - 0xa80], esi
call fcn.00402240
add eax, 0x10
mov dword [ebp - 0xa74], eax
mov eax, dword [0x5d41f4]
add eax, 0xfffffff0
push eax
mov byte [ebp - 4], 0x10
call fcn.00402240
add eax, 0x10
add esp, 0xc
mov dword [ebp - 0xa84], eax
mov byte [ebp - 4], 0x11
cmp esi, 2
jne 0x411882
push 0x5d4204
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x12
push eax
call fcn.00404660
mov edx, dword [ebp - 0xa78]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411870
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 2
jmp 0x411ebf
test esi, esi
jne 0x4118ea
push 0x5d41ac
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x13
push eax
call fcn.00404660
mov edx, dword [ebp - 0xa78]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4118d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0
jmp 0x411ebf
cmp esi, 3
jne 0x41193e
push 0x5d41b0
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x14
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 5
jmp 0x411ebf
cmp esi, 0xd
jne 0x411992
push 0x5d41e4
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x15
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0xd
jmp 0x411ebf
cmp esi, 0xe
jne 0x4119e6
push 0x5d41b4
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x16
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0xe
jmp 0x411ebf
cmp esi, 0xf
jne 0x411a3a
push 0x5d420c
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x17
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0xf
jmp 0x411ebf
cmp esi, 0x10
jne 0x411a8e
push 0x5d41e8
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x18
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0x10
jmp 0x411ebf
cmp esi, 0x11
jne 0x411ae2
push 0x5d4174
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x19
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0x11
jmp 0x411ebf
cmp esi, 0x12
jne 0x411b46
push 0x5d41d0
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x1a
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d41d8
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 0x13
call fcn.00401fa0
jmp 0x411ebf
cmp esi, 4
jne 0x411e6d
mov eax, dword [ebp - 0xa88]
cmp eax, 6
jne 0x411bb9
push 0x5d422c
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x1b
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d41c8
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 6
call fcn.00401fa0
jmp 0x411ebf
cmp eax, 7
jne 0x411c1d
push 0x5d41d4
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x1c
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4214
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 7
call fcn.00401fa0
jmp 0x411ebf
cmp eax, 8
jne 0x411c81
push 0x5d41fc
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x1d
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d41ec
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 8
call fcn.00401fa0
jmp 0x411ebf
cmp eax, 9
jne 0x411ce5
push 0x5d41cc
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x1e
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4220
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 9
call fcn.00401fa0
jmp 0x411ebf
cmp eax, 0xa
jne 0x411da8
mov esi, dword [ebp - 0xaa4]
cmp esi, 9
jge 0x411eb9
push 0x5d4234
lea eax, [ebp - 0xa88]
push 0x574218
push eax
call fcn.0040e7b0
push 0x574218
push eax
lea eax, [ebp - 0xaa0]
push eax
mov byte [ebp - 4], 0x1f
call fcn.0040e6d0
push dword [esi*4 + 0x5cc46c]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0xa78]
push eax
call fcn.0040e6d0
add esp, 0x24
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x21
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
call fcn.00401f80
lea ecx, [ebp - 0xaa0]
call fcn.00401f80
lea ecx, [ebp - 0xa88]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov eax, dword [ebp - 0xaa4]
mov dword [esi + 0x18], 0xa
push dword [eax*4 + 0x5cc46c]
lea ecx, [ebp - 0xa84]
call fcn.00402010
jmp 0x411ebf
cmp eax, 0xb
jne 0x411e0c
push 0x5d418c
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x22
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4180
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 0xb
call fcn.00401fa0
jmp 0x411ebf
cmp eax, 0xc
jne 0x411e6d
push 0x5d419c
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x23
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4228
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 0xc
call fcn.00401fa0
jmp 0x411ebf
push 0x5d4198
lea eax, [ebp - 0xa78]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x24
push eax
call fcn.00404660
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 0x11
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 1
jmp 0x411ebf
mov esi, dword [ebp - 0xa7c]
push dword [ebp - 0xa90]
call fcn.0040f0d0
add esp, 4
cmp dword [ebp - 0xa80], 1
je 0x411ee1
cmp eax, 1
je 0x411ee1
mov byte [esi + 0x14], 1
jmp 0x411ee5
mov byte [esi + 0x14], 0
cmp eax, 1
sete al
mov byte [esi + 0x1c], al
mov esi, dword [ebp - 0xa74]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411f09
push eax
push esi
push eax
mov eax, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call eax
push dword [ebp - 0xa84]
lea eax, [ebp - 0xa94]
push dword [ebp - 0xa74]
push eax
call fcn.004148e0
add esp, 0xc
mov ecx, dword [ebp - 0xa7c]
lea eax, [ebp - 0xa94]
add ecx, 4
push eax
mov byte [ebp - 4], 0x25
call fcn.00401fa0
push dword [ebp - 0xa94]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 0xa98]
call fcn.00415670
mov edx, dword [ebp - 0xa94]
add edx, 0xfffffff0
or esi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411f7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa84]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411fa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
jmp 0x4127e7
push dword [ebp - 0xa98]
call fcn.0040e8f0
push str.TitleTemplate.xml
lea eax, [ebp - 0xa98]
push eax
lea eax, [ebp - 0xa90]
push eax
call fcn.0040e6d0
add esp, 0x10
push dword [ebp - 0xa90]
mov byte [ebp - 4], 0x26
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412033
push str.objectTemplate.xml
lea eax, [ebp - 0xa98]
push eax
lea eax, [ebp - 0xa80]
push eax
call fcn.0040e6d0
add esp, 0xc
push eax
lea ecx, [ebp - 0xa90]
mov byte [ebp - 4], 0x27
call fcn.00401fa0
mov edx, dword [ebp - 0xa80]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x26
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412033
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xa90]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040f290
mov ecx, dword [ebp - 0xa9c]
add ecx, 0xfffffff0
mov esi, eax
push ecx
mov dword [ebp - 0x18], esi
call fcn.00402240
add eax, 0x10
mov dword [ebp - 0xa74], eax
mov eax, dword [0x5d41f4]
add eax, 0xfffffff0
push eax
mov byte [ebp - 4], 0x28
call fcn.00402240
add eax, 0x10
add esp, 0xc
mov dword [ebp - 0xa84], eax
mov byte [ebp - 4], 0x29
cmp esi, 2
jne 0x4120fa
push 0x5d4204
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x2a
push eax
call fcn.00404660
mov edx, dword [ebp - 0xa80]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x29
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4120e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 2
jmp 0x41270d
test esi, esi
jne 0x412162
push 0x5d41ac
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x2b
push eax
call fcn.00404660
mov edx, dword [ebp - 0xa80]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x29
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412150
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0
jmp 0x41270d
cmp esi, 3
jne 0x4121cb
push 0x5d41b0
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x2c
push eax
call fcn.00404660
mov edx, dword [ebp - 0xa80]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x29
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4121b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 5
jmp 0x41270d
cmp esi, 0xd
jne 0x412234
push 0x5d41e4
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x2d
push eax
call fcn.00404660
mov edx, dword [ebp - 0xa80]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x29
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412222
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0xd
jmp 0x41270d
cmp esi, 0xe
jne 0x412288
push 0x5d41b4
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x2e
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0xe
jmp 0x41270d
cmp esi, 0xf
jne 0x4122dc
push 0x5d420c
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x2f
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0xf
jmp 0x41270d
cmp esi, 0x10
jne 0x412330
push 0x5d41e8
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x30
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 0x10
jmp 0x41270d
cmp esi, 0x12
jne 0x412394
push 0x5d41d0
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x31
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d41d8
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 0x13
call fcn.00401fa0
jmp 0x41270d
cmp esi, 4
jne 0x4126bb
mov eax, dword [ebp - 0xa88]
cmp eax, 6
jne 0x412407
push 0x5d422c
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x32
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d41c8
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 6
call fcn.00401fa0
jmp 0x41270d
cmp eax, 7
jne 0x41246b
push 0x5d41d4
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x33
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4214
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 7
call fcn.00401fa0
jmp 0x41270d
cmp eax, 8
jne 0x4124cf
push 0x5d41fc
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x34
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d41ec
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 8
call fcn.00401fa0
jmp 0x41270d
cmp eax, 9
jne 0x412533
push 0x5d41cc
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x35
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4220
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 9
call fcn.00401fa0
jmp 0x41270d
cmp eax, 0xa
jne 0x4125f6
mov esi, dword [ebp - 0xaa4]
cmp esi, 9
jge 0x412707
push 0x5d4234
lea eax, [ebp - 0xaa0]
push 0x574218
push eax
call fcn.0040e7b0
push 0x574218
push eax
lea eax, [ebp - 0xa78]
push eax
mov byte [ebp - 4], 0x36
call fcn.0040e6d0
push dword [esi*4 + 0x5cc46c]
mov byte [ebp - 4], 0x37
push eax
lea eax, [ebp - 0xa80]
push eax
call fcn.0040e6d0
add esp, 0x24
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x38
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
call fcn.00401f80
lea ecx, [ebp - 0xa78]
call fcn.00401f80
lea ecx, [ebp - 0xaa0]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov eax, dword [ebp - 0xaa4]
mov dword [esi + 0x18], 0xa
push dword [eax*4 + 0x5cc46c]
lea ecx, [ebp - 0xa84]
call fcn.00402010
jmp 0x41270d
cmp eax, 0xb
jne 0x41265a
push 0x5d418c
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x39
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4180
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 0xb
call fcn.00401fa0
jmp 0x41270d
cmp eax, 0xc
jne 0x4126bb
push 0x5d419c
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x3a
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
push 0x5d4228
lea ecx, [ebp - 0xa84]
mov dword [esi + 0x18], 0xc
call fcn.00401fa0
jmp 0x41270d
push 0x5d4198
lea eax, [ebp - 0xa80]
push 0x574218
push eax
call fcn.0040e7b0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xa74]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x3b
push eax
call fcn.00404660
lea ecx, [ebp - 0xa80]
mov byte [ebp - 4], 0x29
call fcn.00401f80
mov esi, dword [ebp - 0xa7c]
mov dword [esi + 0x18], 1
jmp 0x41270d
mov esi, dword [ebp - 0xa7c]
push dword [ebp - 0xa90]
call fcn.0040f0d0
add esp, 4
cmp dword [ebp - 0x18], 1
je 0x41272c
cmp eax, 1
je 0x41272c
mov byte [esi + 0x14], 1
jmp 0x412730
mov byte [esi + 0x14], 0
cmp eax, 1
sete al
mov byte [esi + 0x1c], al
mov esi, dword [ebp - 0xa74]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412754
push eax
push esi
push eax
mov eax, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call eax
push dword [ebp - 0xa84]
lea eax, [ebp - 0xa94]
push dword [ebp - 0xa74]
push eax
call fcn.004148e0
add esp, 0xc
mov ecx, dword [ebp - 0xa7c]
lea eax, [ebp - 0xa94]
add ecx, 4
push eax
mov byte [ebp - 4], 0x3c
call fcn.00401fa0
push dword [ebp - 0xa94]
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0xa94]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0x29
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4127c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa84]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x28
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4127e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0xa74]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412806
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa90]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 9
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412829
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._EffectExtractor___ExtractorStock::CDZPExtractor::Extract_END
push 0x322
call fcn.00401d90
add edi, 0xfffffff0
add esp, 8
mov byte [ebp - 0xa89], 1
mov byte [ebp - 4], 8
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41285f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa98]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412882
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa9c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4128a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4128c3
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xa89]
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