Function at 0x40273b
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8124
call fcn.0041a820
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8120], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ecx, ecx
push 7
pop esi
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov word [esp + 0x1f0], cx
mov word [esp + 0x378], cx
mov word [esp + 0x35c], cx
push eax
lea ecx, [esp + 0x2d4]
mov dword [esp + 0x208], esi
mov dword [esp + 0x204], ebx
mov dword [esp + 0x390], esi
mov dword [esp + 0x38c], ebx
mov dword [esp + 0x374], esi
mov dword [esp + 0x370], ebx
mov byte [esp + 0x12], bl
mov dword [esp + 0x2e8], 0xf
mov dword [esp + 0x2e4], ebx
mov byte [esp + 0x2d4], bl
call fcn.004053ac
cmp dword [esp + 0x2e4], 0x10
mov ecx, dword [esp + 0x2d0]
mov eax, ecx
jae 0x4027f3
lea eax, [esp + 0x2d0]
add eax, dword [esp + 0x2e0]
cmp dword [esp + 0x2e4], 0x10
jae 0x40280b
lea ecx, [esp + 0x2d0]
push dword [esp + 0x24]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x2a4]
push eax
mov dword [esp + 0x2bc], esi
mov dword [esp + 0x2b8], ebx
mov word [esp + 0x2a8], dx
call fcn.00406524
lea ebx, [esp + 0x298]
lea eax, [esp + 0x1f0]
call fcn.00401360
push 1
xor edi, edi
mov esi, ebx
call fcn.0040147a
push 5
push 0x4267e0
call fcn.004020f6
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402865
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1f8]
call fcn.004013dc
cmp eax, 0xffffffff
setne cl
xor ebx, ebx
mov byte [0x4282ad], cl
cmp cl, bl
je 0x4028fc
push 0x4228b0
push 5
push eax
lea eax, [esp + 0x1fc]
push eax
call fcn.004042fd
push 0x40000
push 3
push 0x4266a8
call fcn.004020f6
push eax
push 7
push 0x4267ac
call fcn.004020f6
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x4267bc
call fcn.004020f6
push eax
lea esi, [esp + 0x22c]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
xor ebx, ebx
push 0xd8
call fcn.0040bc63
pop ecx
cmp eax, ebx
je 0x402918
call fcn.00406959
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x40291e
mov dword [esp + 0x1c], ebx
mov edi, ebx
lea edx, [esp + 0x3b0]
mov ecx, edi
call fcn.0040705d
lea eax, [edi + 0xbc]
push eax
lea esi, [esp + 0x2f0]
call fcn.004042ac
lea eax, [edi + 0xa0]
push eax
lea esi, [esp + 0x280]
mov dword [esp + 0x28], eax
call fcn.004042ac
xor eax, eax
mov word [esp + 0x1b0], ax
push ebx
lea eax, [edi + 0x1c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x1b8]
mov dword [esp + 0x1cc], 7
mov dword [esp + 0x1c8], ebx
call fcn.0040553b
push ebx
lea eax, [edi + 0x44]
push eax
or eax, 0xffffffff
call fcn.0040553b
push ebx
add edi, 0x64
push edi
or eax, 0xffffffff
call fcn.0040553b
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
push 0xa
push 0x42681c
rep movsd dword es:[edi], dword [esi]
call fcn.004020f6
push eax
lea eax, [esp + 0x408]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push 1
xor edi, edi
lea esi, [esp + 0x1b4]
call fcn.0040147a
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x22c]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
call fcn.0040147a
cmp dword [esp + 0x300], 8
mov eax, dword [esp + 0x2ec]
jae 0x402a12
lea eax, [esp + 0x2ec]
push eax
push 0x10
push 0x426830
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x22c]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
cmp byte [0x4282ad], 0
mov byte [esp + 0xf], 1
je 0x402ad2
cmp dword [esp + 0x200], edi
jbe 0x402b47
cmp dword [esp + 0x204], 8
mov eax, dword [esp + 0x1f0]
mov byte [esp + 0xf], 0
jae 0x402a8d
lea eax, [esp + 0x1f0]
push eax
push 0x20
push 0x426850
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x22c]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
jmp 0x402b47
push 2
pop ebx
push ebx
push 0x4267ec
call fcn.004020f6
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, ebx
test si, si
jne 0x402ae5
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1f8]
call fcn.004013dc
push ebx
push 0x4267f0
mov edi, eax
call fcn.004020f6
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, ebx
test si, si
jne 0x402b15
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1f8]
call fcn.004013dc
cmp edi, 0xffffffff
je 0x402b42
mov byte [esp + 0xf], 0
cmp eax, 0xffffffff
jne 0x402b47
mov byte [esp + 0xf], 1
push 1
call fcn.0040bc63
pop ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x394]
call fcn.00401236
cmp dword [esp + 0x3a4], 0
jbe 0x402b6e
mov byte [esp + 0xe], 1
cmp byte [esp + 0xf], 0
je 0x4032f4
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402b91
lea eax, [esp + 0x27c]
push eax
push 0x13
push 0x426890
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x210]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
push 0x4228b4
lea esi, [esp + 0x29c]
call fcn.00401313
xor ebx, ebx
push ebx
push 0x42102a
lea ecx, [esp + 0x230]
mov dword [esp + 0x244], 0xf
mov dword [esp + 0x240], ebx
mov byte [esp + 0x230], bl
call fcn.00405b81
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402c2a
lea eax, [esp + 0x27c]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x402d46
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402c63
lea eax, [esp + 0x27c]
push eax
push 0x17
push 0x4269e4
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x210]
call fcn.00401313
mov ebx, esi
call fcn.00402142
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
call fcn.0040147a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
lea ecx, [esp + 0x230]
call fcn.00405445
push ebx
lea esi, [esp + 0x29c]
call fcn.0040147a
mov dword [esp + 0x10], 0x1f
push ebx
xor edi, edi
lea esi, [esp + 0x398]
call fcn.0040147a
push ebx
lea esi, [esp + 0x280]
call fcn.0040147a
push ebx
lea esi, [esp + 0x2f0]
call fcn.0040147a
push ebx
lea esi, [esp + 0x3b4]
call fcn.0040147a
push edi
push ebx
lea ecx, [esp + 0x2d8]
call fcn.00405445
push ebx
lea esi, [esp + 0x360]
call fcn.0040147a
push ebx
lea esi, [esp + 0x37c]
call fcn.0040147a
push ebx
lea esi, [esp + 0x1f4]
call fcn.0040147a
mov eax, dword [esp + 0x10]
jmp 0x403ddf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x27c]
push eax
lea edi, [esp + 0x3c]
call fcn.00404356
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x44], ebx
jne 0x403369
lea ecx, [esp + ecx + 0x38]
mov eax, dword [ecx + 0x38]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402d9b
push ebx
call fcn.00402015
sub esp, 0x18
mov ecx, esp
lea eax, [esi - 0x3999]
cdq
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
lea ebx, [esp + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00403f31
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
xor edi, edi
test byte [esp + eax + 0x44], 6
jne 0x402de7
mov eax, dword [esp + eax + 0x70]
mov edx, dword [eax]
push 1
push 1
push edi
push edi
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xdf0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00403e57
xor eax, eax
push 7
pop ebx
mov word [esp + 0x1d4], ax
mov eax, 0x3999
lea ecx, [esp + 0xdf0]
lea esi, [esp + 0x1d4]
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], edi
call fcn.004014ba
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x2a0]
call fcn.0040553b
lea eax, [esp + 0x50]
call fcn.00405a1d
test eax, eax
jne 0x402e76
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x38]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x402e65
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402e76
push edi
call fcn.00402015
push 1
xor edi, edi
lea esi, [esp + 0x1d8]
call fcn.0040147a
push 0x4228b8
lea esi, [esp + 0x328]
call fcn.00401313
push 0x4228bc
lea esi, [esp + 0x344]
call fcn.00401313
and dword [esp + 0x14], edi
mov dword [esp + 0x10], 8
push dword [esp + 0x24]
mov esi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x2b8], ax
lea eax, [esi + 0x426d06]
push eax
xor edi, edi
dec eax
push eax
lea eax, [esp + 0x2c0]
push eax
mov dword [esp + 0x2d8], ebx
mov dword [esp + 0x2d4], edi
call fcn.0040657e
push dword [esp + 0x24]
xor eax, eax
mov word [esp + 0x1d8], ax
lea eax, [esi + 0x426d16]
push eax
lea eax, [esi + 0x426d15]
push eax
lea eax, [esp + 0x1e0]
push eax
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1f4], edi
call fcn.0040657e
push edi
lea eax, [esp + 0x2b8]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x32c]
call fcn.0040553b
push edi
lea eax, [esp + 0x1d8]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x348]
call fcn.0040553b
push 1
lea esi, [esp + 0x1d8]
call fcn.0040147a
push 1
lea esi, [esp + 0x2b8]
call fcn.0040147a
add dword [esp + 0x14], 2
dec dword [esp + 0x10]
jne 0x402eb4
cmp dword [esp + 0x338], 8
mov eax, dword [esp + 0x324]
jae 0x402f96
lea eax, [esp + 0x324]
push dword [esp + 0x334]
lea ecx, [esp + 0x29c]
push eax
xor eax, eax
call fcn.004013dc
cmp dword [esp + 0x354], 8
mov esi, eax
mov eax, dword [esp + 0x340]
jae 0x402fc6
lea eax, [esp + 0x340]
mov edi, dword [esp + 0x350]
push edi
push eax
xor eax, eax
lea ecx, [esp + 0x2a0]
call fcn.004013dc
cmp esi, 0xffffffff
je 0x403295
cmp eax, 0xffffffff
je 0x403295
sub eax, dword [esp + 0x334]
add edi, esi
sub eax, esi
push eax
push edi
lea eax, [esp + 0x2a0]
push eax
lea esi, [esp + 0x1a0]
call fcn.0040432d
mov eax, esi
push eax
lea edi, [esp + 0xf4]
call fcn.00404b34
and dword [esp + 0x1c0], 0
xor eax, eax
mov dword [esp + 0x1c4], ebx
mov word [esp + 0x1b0], ax
jmp 0x403221
push str.:eu___
xor eax, eax
lea ecx, [esp + 0x1b8]
call fcn.004013dc
mov esi, eax
cmp esi, 0xffffffff
je 0x403205
xor eax, eax
xor edi, edi
push esi
mov word [esp + 0x1d8], ax
push edi
lea eax, [esp + 0x1b8]
lea ecx, [esp + 0x1dc]
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1ec], edi
call fcn.00401535
xor eax, eax
mov word [esp + 0x2b4], ax
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x1b8]
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x2d0], ebx
mov dword [esp + 0x2cc], edi
call fcn.00401535
push 0x4228c4
lea ecx, [esp + 0x1d8]
call fcn.004064b3
test eax, eax
jne 0x4030e6
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x2bc]
lea ecx, [esp + 0x364]
call fcn.00401535
push 0x4228c8
lea ecx, [esp + 0x1d8]
call fcn.004064b3
test eax, eax
jne 0x403111
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x2bc]
lea ecx, [esp + 0x380]
call fcn.00401535
push 0x4228cc
push 1
push esi
lea eax, [esp + 0x1bc]
push eax
call fcn.004042fd
xor eax, eax
mov word [esp + 0x308], ax
mov eax, dword [esp + 0x1c0]
xor edi, edi
inc eax
lea ecx, [esp + 0x308]
mov dword [esp + 0x31c], ebx
mov dword [esp + 0x318], edi
call fcn.0040647e
push 0x4228d4
lea eax, [esp + 0x30c]
push eax
call fcn.004042d2
push edi
lea eax, [esp + 0x1b4]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x310]
call fcn.0040553b
push 0x4228d0
mov eax, esi
push eax
call fcn.004042d2
mov dword [esp + 0x220], ebx
xor ecx, ecx
mov ebx, eax
lea eax, [esp + 0x20c]
mov dword [esp + 0x21c], edi
mov word [esp + 0x20c], cx
call fcn.00401360
push edi
lea eax, [esp + 0x210]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x1f8]
call fcn.0040553b
xor ebx, ebx
inc ebx
push ebx
lea esi, [esp + 0x210]
call fcn.0040147a
push ebx
lea esi, [esp + 0x30c]
call fcn.0040147a
push ebx
lea esi, [esp + 0x2b8]
call fcn.0040147a
push ebx
lea esi, [esp + 0x1d8]
call fcn.0040147a
push 7
pop ebx
jmp 0x403221
push 0x4228d8
lea ecx, [esp + 0x1b4]
call fcn.004064b3
test eax, eax
jne 0x403221
mov byte [0x4282ae], 1
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x1b4]
call fcn.004065d8
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx eax, al
neg eax
sbb eax, eax
not eax
push 1
test ecx, eax
jne 0x40303d
xor edi, edi
lea esi, [esp + 0x1b4]
call fcn.0040147a
lea ecx, [esp + 0x148]
call fcn.00404bb2
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040ac20
pop ecx
push 1
lea esi, [esp + 0x198]
call fcn.0040147a
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [esp + 0x344]
call fcn.0040147a
push ebx
lea esi, [esp + 0x328]
call fcn.0040147a
lea ecx, [esp + 0xa8]
call fcn.0040442e
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0040ac20
pop ecx
push edi
push ebx
lea ecx, [esp + 0x230]
call fcn.00405445
push ebx
lea esi, [esp + 0x29c]
call fcn.0040147a
cmp dword [esp + 0x200], 0
jne 0x403389
push 0x4228ec
push 0x16
push 0x4268b8
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
push 0x2f
push 0x426908
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov eax, esi
call fcn.00402325
push 0x2f
push 0x426908
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ecx, esi
call fcn.00402213
cmp dword [esp + 0x204], 8
mov eax, dword [esp + 0x1f0]
jae 0x4033a1
lea eax, [esp + 0x1f0]
push eax
push 2
push 0x4265e4
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
xor ebx, ebx
cmp byte [0x4282ae], bl
jne 0x40360b
cmp byte [0x4282ad], bl
jne 0x40360b
lea eax, [esp + 0x27c]
push eax
lea edx, [esp + 0x2f0]
lea ecx, [esp + 0x210]
call fcn.004010a7
cmp dword [esp + 0x21c], ebx
jbe 0x40342e
lea ecx, [esp + 0x20c]
jmp 0x403384
push 1
xor edi, edi
lea esi, [esp + 0x210]
call fcn.0040147a
cmp byte [0x4282ad], bl
jne 0x40360b
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x19
push 0x426bf8
mov dword [esp + 0x24], ebx
call fcn.004020f6
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403495
push 0x32
push 0x426b88
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ecx, esi
jmp 0x403384
push 0x12
xor eax, eax
push 0x426c2c
mov dword [esp + 0x1f0], 7
mov dword [esp + 0x1ec], ebx
mov word [esp + 0x1dc], ax
call fcn.004020f6
push eax
lea esi, [esp + 0x210]
call fcn.00401313
push 0x20
push 0x426c50
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov eax, esi
push eax
lea edx, [esp + 0x1d8]
lea ecx, [esp + 0x210]
call fcn.00406781
push 1
xor edi, edi
mov dword [esp + 0x18], eax
call fcn.0040147a
push 1
lea esi, [esp + 0x210]
call fcn.0040147a
cmp dword [esp + 0x14], ebx
jne 0x4035fb
push 6
push 0x426c90
call fcn.004020f6
push eax
lea esi, [esp + 0x1b4]
call fcn.00401313
cmp dword [esp + 0x1c4], 8
mov esi, dword [esp + 0x1b0]
mov edi, esi
jae 0x4035e4
lea edi, [esp + 0x1b0]
mov eax, edi
cmp dword [esp + 0x1c4], 8
mov ecx, dword [esp + 0x1c0]
lea ebx, [eax + ecx*2]
jae 0x403572
lea esi, [esp + 0x1b0]
cmp esi, ebx
je 0x40358d
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040cb4e
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x403578
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x4035a5
lea eax, [esp + 0x1b0]
mov edi, dword [esp + 0x1c0]
push eax
mov eax, dword [esp + 0x1e8]
lea ecx, [esp + 0x1d8]
call fcn.004064e0
test eax, eax
jne 0x4035eb
push 0x32
push 0x426b88
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ecx, esi
jmp 0x403384
mov eax, esi
jmp 0x403557
push 1
xor edi, edi
lea esi, [esp + 0x1b4]
call fcn.0040147a
push 1
xor edi, edi
lea esi, [esp + 0x1d8]
call fcn.0040147a
push 0x4228f0
lea esi, [esp + 0x248]
call fcn.00401313
lea eax, [esp + 0xbe8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40365e
lea eax, [esp + 0xbe8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, eax
lea eax, [esp + 0x244]
call fcn.00401360
push 1
xor edi, edi
call fcn.0040147a
lea edx, [esp + 0x244]
lea ecx, [esp + 0x194]
call fcn.004071f9
mov ebx, eax
lea eax, [esp + 0x244]
call fcn.00401360
push 1
xor edi, edi
lea esi, [esp + 0x198]
call fcn.0040147a
mov eax, dword [esp + 0x244]
push 8
pop ebx
cmp dword [esp + 0x258], ebx
jae 0x4036a9
lea eax, [esp + 0x244]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4036ff
push 0x17
push 0x426968
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
push 0x25
push 0x426998
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov eax, esi
jmp 0x403364
mov ecx, dword [esp + 0x2ec]
cmp dword [esp + 0x300], ebx
jae 0x403716
lea ecx, [esp + 0x2ec]
mov eax, dword [esp + 0x244]
cmp dword [esp + 0x258], ebx
jae 0x40372d
lea eax, [esp + 0x244]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push eax
lea eax, [esp + 0x3f0]
push str._s_s.exe
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x264]
call fcn.00401313
mov eax, dword [esp + 0x260]
cmp dword [esp + 0x274], ebx
jae 0x40376d
mov eax, esi
push eax
push 0x11
push 0x4268e4
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
cmp byte [esp + 0xe], 0
mov esi, dword [0x4282b0]
push 5
pop edi
mov dword [esp + 0x20], 0x1c319
je 0x4037d2
push 7
xor esi, esi
pop edi
inc esi
mov dword [esp + 0x20], 0x31a52
push dword [esp + 0x20]
and dword [esp + 0x14], 0
call fcn.0040aa15
add edi, edi
pop ecx
mov dword [esp + 0x14], eax
mov ebx, esi
mov dword [esp + 0x30], edi
cmp esi, edi
jge 0x4038a9
push 0
call fcn.0040aa15
mov edi, eax
pop ecx
lea eax, [ebx + 0x69]
movzx eax, ax
push 0xa
push eax
push dword [esp + 0x30]
mov byte [esp + 0x1a], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jle 0x403860
push esi
call fcn.0040aa15
pop ecx
push esi
push dword [esp + 0x1c]
mov edi, eax
push edi
call fcn.0040e200
add esp, 0xc
mov byte [esp + 0xe], 1
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [esp + 0xe], 0
je 0x4038da
push 0x36
pop eax
mov dword [esp + 0x18], eax
cmp esi, eax
jle 0x40389c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
inc dword [esp + 0x18]
mov al, byte [eax + edi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + edx], al
cmp dword [esp + 0x18], esi
jl 0x40387c
add ebx, 2
cmp ebx, dword [esp + 0x30]
jl 0x4037f5
lea esi, [esp + 0x20]
lea ecx, [esp + 0x14]
call fcn.00402355
test al, al
jne 0x4038fa
push 0x2f
push 0x426908
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ecx, esi
jmp 0x403384
push 0x25
push 0x426998
call fcn.004020f6
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov eax, esi
jmp 0x403364
cmp dword [esp + 0x274], 8
mov eax, dword [esp + 0x260]
jae 0x403912
lea eax, [esp + 0x260]
xor edi, edi
push edi
push 0x100
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4039c3
cmp dword [esp + 0x274], 8
mov eax, dword [esp + 0x260]
jae 0x40394d
lea eax, [esp + 0x260]
push eax
push 0x17
push 0x4269e4
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea esi, [esp + 0x264]
call fcn.0040147a
push 1
lea esi, [esp + 0x248]
call fcn.0040147a
xor ebx, ebx
mov dword [esp + 0x10], 0xd
inc ebx
jmp 0x402cd2
push edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4039e2
call fcn.004022ae
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040d0e3
cmp dword [esp + 0x278], 8
mov eax, dword [esp + 0x264]
pop ecx
jae 0x403a0a
lea eax, [esp + 0x260]
push eax
push 0x14
push 0x426a14
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
push 8
push 0x426a3c
call fcn.004020f6
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403a5e
sub ecx, edx
sar ecx, 1
push eax
mov edi, ecx
lea eax, [esp + 0x1f4]
call fcn.0040577e
cmp byte [0x4282ad], 0
mov ebx, 0x4265e0
je 0x403b45
lea eax, [esp + 0x3b0]
push eax
lea esi, [esp + 0x22c]
call fcn.004042ac
push 3
push 0x4267f4
call fcn.004020f6
push eax
lea esi, [esp + 0x210]
call fcn.00401313
push 0x422908
mov eax, esi
push eax
call fcn.004042d2
push 1
push ebx
call fcn.004020f6
push eax
mov eax, esi
push eax
call fcn.004042d2
mov eax, esi
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x230]
call fcn.00405670
push 7
push 0x4265f0
call fcn.004020f6
push eax
mov eax, esi
push eax
call fcn.004042d2
push 1
push ebx
call fcn.004020f6
push eax
mov eax, esi
push eax
call fcn.004042d2
mov eax, esi
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x1f8]
call fcn.0040553b
push 1
xor edi, edi
lea esi, [esp + 0x210]
call fcn.0040147a
push 1
lea esi, [esp + 0x22c]
call fcn.0040147a
push 3
push 0x4267fc
call fcn.004020f6
push eax
lea esi, [esp + 0x3d0]
call fcn.00401313
push 0x42290c
mov eax, esi
push eax
call fcn.004042d2
mov eax, esi
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x1f8]
call fcn.0040553b
push 1
push ebx
call fcn.004020f6
push eax
mov eax, esi
push eax
call fcn.004042d2
push dword [esp + 0x24]
lea esi, [esp + 0x198]
call fcn.004042ac
mov eax, esi
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x1f8]
call fcn.0040553b
push 1
xor edi, edi
lea esi, [esp + 0x198]
call fcn.0040147a
push 1
push ebx
call fcn.004020f6
push eax
lea eax, [esp + 0x1f4]
push eax
call fcn.004042d2
lea eax, [esp + 0x1f0]
push eax
lea edx, [esp + 0x264]
lea ecx, [esp + 0x248]
call fcn.0040251e
test al, al
je 0x403c42
push 0x422910
push 0x17
push 0x426a4c
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
xor ebx, ebx
inc ebx
push ebx
call fcn.0040147a
jmp 0x403c8c
push 0x422914
push 0x10
push 0x426a7c
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
xor ebx, ebx
inc ebx
cmp byte [0x4282ad], 0
je 0x403cf0
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403cad
lea eax, [esp + 0x244]
push eax
push 0x2d
push 0x426ac8
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x4266a8
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403d4b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x244]
push eax
call fcn.004072ed
push 0x422918
push 0x16
push 0x426a9c
call fcn.004020f6
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.00401313
mov ebx, esi
call fcn.00402142
push 1
xor edi, edi
call fcn.0040147a
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [esp + 0x3d0]
call fcn.0040147a
push ebx
lea esi, [esp + 0x264]
call fcn.0040147a
push ebx
lea esi, [esp + 0x248]
call fcn.0040147a
push ebx
lea esi, [esp + 0x398]
call fcn.0040147a
push ebx
lea esi, [esp + 0x280]
call fcn.0040147a
push ebx
lea esi, [esp + 0x2f0]
call fcn.0040147a
push ebx
lea esi, [esp + 0x3b4]
call fcn.0040147a
push edi
push ebx
lea ecx, [esp + 0x2d8]
call fcn.00405445
push ebx
lea esi, [esp + 0x360]
call fcn.0040147a
push ebx
lea esi, [esp + 0x37c]
call fcn.0040147a
push ebx
lea esi, [esp + 0x1f4]
call fcn.0040147a
xor eax, eax
mov ecx, dword [esp + 0x812c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b61b
mov esp, ebp
pop ebp
ret 0x10