Function at 0x4028f5
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, 0x8104
call fcn.0041ad20
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8100], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ecx, ecx
push 7
pop ebx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov word [esp + 0x1d0], cx
mov word [esp + 0x320], cx
mov word [esp + 0x358], cx
mov byte [esp + 0x17], cl
mov byte [esp + 0x2e8], cl
push eax
lea ecx, [esp + 0x2ec]
mov dword [esp + 0x1e8], ebx
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x338], ebx
mov dword [esp + 0x334], esi
mov dword [esp + 0x370], ebx
mov dword [esp + 0x36c], esi
mov dword [esp + 0x300], 0xf
mov dword [esp + 0x2fc], esi
call fcn.0040528e
cmp dword [esp + 0x2fc], 0x10
mov ecx, dword [esp + 0x2e8]
mov eax, ecx
jae 0x4029ad
lea eax, [esp + 0x2e8]
add eax, dword [esp + 0x2f8]
cmp dword [esp + 0x2fc], 0x10
jae 0x4029c5
lea ecx, [esp + 0x2e8]
push dword [esp + 0x24]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x2bc]
push eax
mov dword [esp + 0x2d4], ebx
mov dword [esp + 0x2d0], esi
mov word [esp + 0x2c0], dx
call fcn.00406415
lea esi, [esp + 0x2b0]
lea edi, [esp + 0x1d0]
call fcn.00401370
push 0
push 1
mov ecx, esi
call fcn.00401455
push 5
push 0x4267a0
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402a1f
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1d8]
call fcn.004013b7
cmp eax, 0xffffffff
setne cl
mov byte [0x42818c], cl
test cl, cl
je 0x402ab4
push 0x422940
push 5
push eax
lea eax, [esp + 0x1dc]
push eax
call fcn.00404208
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
push ebx
push 0x42676c
call fcn.004020d4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x42677c
call fcn.004020d4
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xd8
call fcn.0040c243
pop ecx
test eax, eax
je 0x402ad0
call fcn.00406824
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x402ad9
and dword [esp + 0x20], 0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3ac]
mov ebx, esi
call fcn.00406f10
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x378]
call fcn.004041e0
lea eax, [esi + 0xa0]
push eax
lea eax, [esp + 0x298]
call fcn.004041e0
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1b0], ax
push ebx
lea eax, [esi + 0x1c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1b8]
mov dword [esp + 0x1cc], 7
mov dword [esp + 0x1c8], ebx
call fcn.0040541d
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.0040541d
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.0040541d
sub esp, 0x1c
push 7
pop ecx
mov esi, edi
mov edi, esp
push 0xa
push 0x4267bc
rep movsd dword es:[edi], dword [esi]
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3e8]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x1b8]
call fcn.00401455
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x388], 8
mov eax, dword [esp + 0x374]
jae 0x402bd2
lea eax, [esp + 0x374]
push eax
push 0x10
push 0x4267d0
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [0x42818c], 0
je 0x402cfa
cmp dword [esp + 0x1e0], 0
jbe 0x402d6f
cmp dword [esp + 0x1e4], 8
mov eax, dword [esp + 0x1d0]
jae 0x402c46
lea eax, [esp + 0x1d0]
push eax
push 0x20
push 0x4267f0
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x1e0], 0
jne 0x403519
push 0x42297c
push 0x16
push 0x426858
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x2f
push 0x4268a8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
call fcn.0040246b
push 2
pop esi
push esi
push 0x4267ac
call fcn.004020d4
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402d0f
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x1d8]
call fcn.004013b7
push esi
push 0x4267b0
mov dword [esp + 0x20], eax
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402d41
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1d8]
call fcn.004013b7
cmp dword [esp + 0x18], 0xffffffff
je 0x402d6f
cmp eax, 0xffffffff
jne 0x402c87
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x402d87
lea eax, [esp + 0x294]
push eax
push 0x13
push 0x426830
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x20c]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 0x422944
lea esi, [esp + 0x2b4]
call fcn.004012ca
push ebx
push 0x42106a
lea ecx, [esp + 0x22c]
mov dword [esp + 0x240], 0xf
mov dword [esp + 0x23c], ebx
mov byte [esp + 0x22c], bl
call fcn.004058bd
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x402e1d
lea eax, [esp + 0x294]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x402f2b
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x402e58
lea eax, [esp + 0x294]
push eax
push 0x17
push 0x426984
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x20c]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.00401455
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x22c]
call fcn.00405327
push esi
push edi
lea ecx, [esp + 0x2b8]
call fcn.00401455
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x29c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x37c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x3b4]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x2f0]
call fcn.00405327
push esi
push edi
lea ecx, [esp + 0x360]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x328]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x1d8]
call fcn.00401455
mov eax, ebx
jmp 0x403d13
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x294]
push eax
lea edi, [esp + 0x3c]
call fcn.00404238
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x44], ebx
jne 0x4034f9
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 0x402f83
push ebx
call fcn.00401ff3
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.00403e65
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x44], 6
jne 0x402fcf
mov eax, dword [esp + eax + 0x70]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xdd0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00403d8b
xor eax, eax
mov word [esp + 0x1ec], ax
mov eax, 0x3999
lea ecx, [esp + 0xdd0]
lea edx, [esp + 0x1ec]
mov dword [esp + 0x200], 7
mov dword [esp + 0x1fc], ebx
call fcn.0040149e
push ebx
lea eax, [esp + 0x1f0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2b8]
call fcn.0040541d
lea eax, [esp + 0x50]
call fcn.00405759
test eax, eax
jne 0x403064
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], ebx
jne 0x403053
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x403064
push ebx
call fcn.00401ff3
push ebx
push 1
lea ecx, [esp + 0x1f4]
call fcn.00401455
push 0x422948
lea esi, [esp + 0x340]
call fcn.004012ca
push 0x42294c
lea esi, [esp + 0x308]
call fcn.004012ca
push 7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 8
pop esi
push dword [esp + 0x24]
mov edi, dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x2d0], ax
lea eax, [edi + 0x426bfe]
push eax
dec eax
push eax
lea eax, [esp + 0x2d8]
push eax
mov dword [esp + 0x2f0], esi
mov dword [esp + 0x2ec], ebx
call fcn.00406470
push dword [esp + 0x24]
xor eax, eax
mov word [esp + 0x1f0], ax
lea eax, [edi + 0x426c0e]
push eax
lea eax, [edi + 0x426c0d]
push eax
lea eax, [esp + 0x1f8]
push eax
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
call fcn.00406470
push ebx
lea eax, [esp + 0x2d0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x344]
call fcn.0040541d
push ebx
lea eax, [esp + 0x1f0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x30c]
call fcn.0040541d
push ebx
push 1
lea ecx, [esp + 0x1f4]
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x2d4]
call fcn.00401455
add dword [esp + 0x10], 2
dec dword [esp + 0x18]
jne 0x4030a4
cmp dword [esp + 0x350], 8
mov eax, dword [esp + 0x33c]
jae 0x403186
lea eax, [esp + 0x33c]
push dword [esp + 0x34c]
lea ecx, [esp + 0x2b4]
push eax
xor eax, eax
call fcn.004013b7
cmp dword [esp + 0x318], 8
mov edi, eax
mov eax, dword [esp + 0x304]
jae 0x4031b6
lea eax, [esp + 0x304]
push dword [esp + 0x314]
lea ecx, [esp + 0x2b4]
push eax
xor eax, eax
call fcn.004013b7
cmp edi, 0xffffffff
je 0x40348e
cmp eax, 0xffffffff
je 0x40348e
sub eax, dword [esp + 0x34c]
xor ecx, ecx
sub eax, edi
push eax
mov eax, dword [esp + 0x318]
add eax, edi
push eax
lea eax, [esp + 0x2b8]
lea edi, [esp + 0x210]
mov dword [esp + 0x224], esi
mov dword [esp + 0x220], ebx
mov word [esp + 0x210], cx
call fcn.0040151b
mov eax, edi
push eax
lea edi, [esp + 0xf4]
call fcn.00404a16
xor eax, eax
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], ax
jmp 0x403419
push 1
push 0x422950
xor eax, eax
call fcn.004013b7
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4033fd
push dword [esp + 0x10]
xor eax, eax
mov word [esp + 0x1f0], ax
push ebx
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x1f4]
mov dword [esp + 0x208], esi
mov dword [esp + 0x204], ebx
call fcn.0040151b
xor eax, eax
mov word [esp + 0x2cc], ax
mov eax, dword [esp + 0x10]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x2d4]
mov dword [esp + 0x2e8], esi
mov dword [esp + 0x2e4], ebx
call fcn.0040151b
push 0x422954
lea ecx, [esp + 0x1f0]
call fcn.00406326
test eax, eax
jne 0x4032ed
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x360]
call fcn.0040151b
push 0x422958
lea ecx, [esp + 0x1f0]
call fcn.00406326
test eax, eax
jne 0x403318
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2d4]
lea edi, [esp + 0x328]
call fcn.0040151b
push 0x42295c
push 1
push dword [esp + 0x18]
lea eax, [esp + 0x1bc]
push eax
call fcn.00404208
xor eax, eax
mov word [esp + 0x25c], ax
mov eax, dword [esp + 0x1c0]
inc eax
lea ecx, [esp + 0x25c]
mov dword [esp + 0x270], 7
mov dword [esp + 0x26c], ebx
call fcn.004062f3
push 0x422964
lea eax, [esp + 0x260]
push eax
call fcn.004062c8
push ebx
lea eax, [esp + 0x1b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x264]
call fcn.0040541d
push 0x422960
mov eax, edi
push eax
call fcn.004062c8
mov esi, eax
lea eax, [esp + 0x194]
call fcn.00401302
push ebx
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1d8]
call fcn.0040541d
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x264]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2d4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x1f4]
call fcn.00401455
push 7
pop esi
jmp 0x403419
push 0x422968
lea ecx, [esp + 0x1b4]
call fcn.00406326
test eax, eax
jne 0x403419
mov byte [0x42818d], 1
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.004064cb
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
test ecx, eax
lea ecx, [esp + 0x1b0]
jne 0x403249
push ebx
push 1
call fcn.00401455
lea ecx, [esp + 0x148]
call fcn.00404a94
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b1f6
pop ecx
push ebx
push 1
lea ecx, [esp + 0x210]
call fcn.00401455
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x30c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x344]
call fcn.00401455
lea ecx, [esp + 0xa8]
call fcn.00404310
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0040b1f6
pop ecx
push ebx
push esi
lea ecx, [esp + 0x22c]
call fcn.00405327
push ebx
push esi
lea ecx, [esp + 0x2b8]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x402c87
push 0x2f
push 0x4268a8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
call fcn.0040249b
cmp dword [esp + 0x1e4], 8
mov eax, dword [esp + 0x1d0]
jae 0x403531
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x3cc]
push 0x422980
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 1
call fcn.0040c243
pop ecx
cmp byte [0x42818d], bl
jne 0x4035f0
cmp byte [0x42818c], bl
jne 0x4035f0
lea eax, [esp + 0x294]
push eax
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 0x37c]
call fcn.0040114c
lea ecx, [esp + 0x208]
cmp dword [esp + 0x218], ebx
ja 0x403514
push ebx
push 1
call fcn.00401455
cmp byte [0x42818c], bl
jne 0x4035f0
mov ebx, dword [esp + 0x20]
call fcn.00407368
test al, al
jne 0x4035f0
push 0x32
push 0x426b28
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x403514
mov ecx, dword [esp + 0x20]
lea ebx, [esp + 0x390]
call fcn.004010a7
xor ebx, ebx
cmp dword [esp + 0x3a0], ebx
jbe 0x4036ea
xor eax, eax
mov word [esp + 0x25c], ax
mov eax, dword [esp + 0x330]
inc eax
lea ecx, [esp + 0x25c]
mov dword [esp + 0x270], 7
mov dword [esp + 0x26c], ebx
call fcn.004062f3
push ebx
lea eax, [esp + 0x324]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x264]
call fcn.0040541d
push 0x422988
mov eax, edi
push eax
call fcn.004062c8
push ebx
lea eax, [esp + 0x35c]
push eax
or eax, 0xffffffff
call fcn.0040541d
mov esi, eax
lea eax, [esp + 0x208]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.00401455
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x194]
push eax
call fcn.004071ad
sub esp, 0x1c
lea ecx, [esp + 0x224]
mov eax, esp
push ecx
call fcn.004041e0
sub esp, 0x1c
lea ecx, [esp + 0x1cc]
mov eax, esp
push ecx
call fcn.004041e0
call fcn.004025a2
push ebx
push 1
lea ecx, [esp + 0x19c]
mov byte [esp + 0x1f], 1
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x210]
call fcn.00401455
push 0x42298c
lea esi, [esp + 0x27c]
call fcn.004012ca
lea eax, [esp + 0xbc8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403743
lea eax, [esp + 0xbc8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov esi, eax
lea edi, [esp + 0x278]
call fcn.00401370
push ebx
push 1
lea ecx, [esp + 0x19c]
call fcn.00401455
lea edx, [esp + 0x278]
lea ecx, [esp + 0x194]
call fcn.00407739
mov esi, eax
lea edi, [esp + 0x278]
call fcn.00401370
push ebx
push 1
lea ecx, [esp + 0x19c]
call fcn.00401455
cmp dword [esp + 0x28c], 8
mov eax, dword [esp + 0x278]
jae 0x403786
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4037ed
push 0x17
push 0x426908
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x3e8
push 0x1b8
call dword [sym.imp.KERNEL32.dll_Beep]
push 0x25
push 0x426938
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x402cf5
lea edx, [esp + 0x278]
lea ecx, [esp + 0x240]
call fcn.004079c1
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
jae 0x403818
lea eax, [esp + 0x240]
push eax
push 0x11
push 0x426884
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 4
pop esi
mov dword [esp + 0x28], 0x1aefd
cmp byte [esp + 0x17], bl
je 0x40387d
push 6
pop esi
inc ebx
mov dword [esp + 0x28], 0x3114e
push dword [esp + 0x28]
and dword [esp + 0x1c], 0
call fcn.0040afeb
add esi, esi
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], esi
cmp ebx, esi
jge 0x40393b
push 0
call fcn.0040afeb
pop ecx
lea eax, [ebx + 0x69]
movzx eax, ax
push 0xa
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [esp + 0x30]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jle 0x40396c
push esi
call fcn.0040afeb
pop ecx
push esi
push dword [esp + 0x20]
mov dword [esp + 0x38], eax
push eax
call fcn.0040e6a0
add esp, 0xc
push 0x21
pop eax
mov dword [esp + 0x1c], eax
cmp esi, eax
jle 0x40392e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
inc dword [esp + 0x18]
mov al, byte [ecx + eax]
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov byte [ecx + edx], al
cmp dword [esp + 0x1c], esi
jl 0x40390a
add ebx, 2
cmp ebx, dword [esp + 0x24]
jl 0x40389e
lea esi, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.0040272c
test al, al
jne 0x40398c
push 0x2f
push 0x4268a8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x403514
push 0x25
push 0x426938
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x402cf5
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
jae 0x4039a4
lea eax, [esp + 0x240]
xor ebx, ebx
push ebx
push 0x100
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
jne 0x403a5b
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
jae 0x4039df
lea eax, [esp + 0x240]
push eax
push 0x17
push 0x426984
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.00401455
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x248]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x280]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x398]
call fcn.00401455
push 0xd
jmp 0x402ec1
push ebx
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403a7b
mov edi, esi
call fcn.00402538
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call fcn.0040d581
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
pop ecx
jae 0x403aa4
lea eax, [esp + 0x240]
push eax
push 0x14
push 0x4269b4
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 8
push 0x4269dc
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403af6
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x1d4]
call fcn.004054ba
lea eax, [esp + 0x1d0]
push eax
lea edx, [esp + 0x244]
lea ecx, [esp + 0x27c]
call fcn.004021e9
test al, al
je 0x403b82
push 0x422990
push 0x17
push 0x4269ec
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.00401455
jmp 0x403bcc
push 0x422994
push 0x10
push 0x426a1c
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x42818c], bl
je 0x403c2a
cmp dword [esp + 0x28c], 8
mov eax, dword [esp + 0x278]
jae 0x403bec
lea eax, [esp + 0x278]
push eax
push 0x2d
push 0x426a68
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403c85
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x278]
push eax
call fcn.00407816
push 0x422998
push 0x16
push 0x426a3c
call fcn.004020d4
push eax
lea eax, [esp + 0x3d0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3c8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x248]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x280]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x398]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x29c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x37c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x3b4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2f0]
call fcn.00405327
push ebx
push esi
lea ecx, [esp + 0x360]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x328]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x1d8]
call fcn.00401455
xor eax, eax
mov ecx, dword [esp + 0x810c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bbf1
mov esp, ebp
pop ebp
ret 0x10