Function at 0x4026c2
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, 0x8374
call fcn.0041acf0
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8370], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 7
pop ebx
mov dword [esp + 0x1c], eax
xor eax, eax
xor edi, edi
push 3
push 0x4267b4
mov dword [esp + 0x35c], ebx
mov dword [esp + 0x358], edi
mov word [esp + 0x348], ax
mov dword [esp + 0x4c8], ebx
mov dword [esp + 0x4c4], edi
mov word [esp + 0x4b4], ax
mov dword [esp + 0x500], ebx
mov dword [esp + 0x4fc], edi
mov word [esp + 0x4ec], ax
call fcn.004020d4
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push esi
lea ecx, [esp + 0x45c]
mov dword [esp + 0x470], 0xf
mov dword [esp + 0x46c], edi
mov byte [esp + 0x45c], 0
call fcn.00405260
cmp dword [esp + 0x46c], 0x10
mov ecx, dword [esp + 0x458]
mov eax, ecx
jae 0x40278a
lea eax, [esp + 0x458]
add eax, dword [esp + 0x468]
cmp dword [esp + 0x46c], 0x10
jae 0x4027a2
lea ecx, [esp + 0x458]
push dword [esp + 0x20]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x42c]
push eax
mov dword [esp + 0x444], ebx
mov dword [esp + 0x440], edi
mov word [esp + 0x430], dx
call fcn.004063e7
lea esi, [esp + 0x420]
lea edi, [esp + 0x340]
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 0x4027fc
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x348]
call fcn.004013b7
cmp eax, 0xffffffff
setne cl
mov byte [0x42832c], cl
test cl, cl
je 0x402891
push 0x42293c
push 5
push eax
lea eax, [esp + 0x34c]
push eax
call fcn.004041da
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 + 0x360]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xd8
call fcn.0040c213
pop ecx
test eax, eax
je 0x4028ad
call fcn.004067f6
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x4028b6
and dword [esp + 0x24], 0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x51c]
mov ebx, esi
call fcn.00406ee4
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x4cc]
call fcn.004041b2
lea eax, [esi + 0xa0]
push eax
lea eax, [esp + 0x408]
call fcn.004041b2
xor eax, eax
xor ebx, ebx
mov word [esp + 0x320], ax
push ebx
lea eax, [esi + 0x1c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x328]
mov dword [esp + 0x33c], 7
mov dword [esp + 0x338], ebx
call fcn.004053ef
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.004053ef
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.004053ef
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 + 0x658]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x328]
call fcn.00401455
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x360]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x4dc], 8
mov eax, dword [esp + 0x4c8]
jae 0x4029af
lea eax, [esp + 0x4c8]
push eax
push 0x10
push 0x4267d0
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x360]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [0x42832c], 0
je 0x402ad7
cmp dword [esp + 0x350], 0
jbe 0x402b4c
cmp dword [esp + 0x354], 8
mov eax, dword [esp + 0x340]
jae 0x402a23
lea eax, [esp + 0x340]
push eax
push 0x20
push 0x4267f0
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x360]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x350], 0
jne 0x403316
push 0x422978
push 0x16
push 0x426858
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
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 + 0x308]
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 0x402aec
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x348]
call fcn.004013b7
push esi
push 0x4267b0
mov dword [esp + 0x18], eax
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402b1e
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x348]
call fcn.004013b7
cmp dword [esp + 0x10], 0xffffffff
je 0x402b4c
cmp eax, 0xffffffff
jne 0x402a64
cmp dword [esp + 0x418], 8
mov eax, dword [esp + 0x404]
jae 0x402b64
lea eax, [esp + 0x404]
push eax
push 0x13
push 0x426830
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x3b4]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 0x422940
lea esi, [esp + 0x424]
call fcn.004012ca
push ebx
push 0x421072
lea ecx, [esp + 0x364]
mov dword [esp + 0x378], 0xf
mov dword [esp + 0x374], ebx
mov byte [esp + 0x364], bl
call fcn.0040588f
cmp dword [esp + 0x418], 8
mov eax, dword [esp + 0x404]
jae 0x402bfa
lea eax, [esp + 0x404]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x402d08
cmp dword [esp + 0x418], 8
mov eax, dword [esp + 0x404]
jae 0x402c35
lea eax, [esp + 0x404]
push eax
push 0x17
push 0x426984
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x3b4]
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 + 0x364]
call fcn.004052f9
push esi
push edi
lea ecx, [esp + 0x428]
call fcn.00401455
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x40c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x4d0]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x524]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x460]
call fcn.004052f9
push esi
push edi
lea ecx, [esp + 0x4ec]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x4b4]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x348]
call fcn.00401455
mov eax, ebx
jmp 0x403ce5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x404]
push eax
lea edi, [esp + 0x53c]
call fcn.0040420a
mov eax, dword [esp + 0x538]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x544], ebx
jne 0x4032f6
lea ecx, [esp + ecx + 0x538]
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 0x402d6c
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 + 0x550]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00403e37
mov eax, dword [esp + 0x538]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x544]
xor ebx, ebx
test cl, 6
jne 0x402dc6
mov eax, dword [esp + eax + 0x570]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x330]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0x1040]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.00403d5d
xor eax, eax
mov word [esp + 0x378], ax
mov eax, 0x3999
lea ecx, [esp + 0x1040]
lea edx, [esp + 0x378]
mov dword [esp + 0x38c], 7
mov dword [esp + 0x388], ebx
call fcn.0040149e
push ebx
lea eax, [esp + 0x37c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x428]
call fcn.004053ef
lea eax, [esp + 0x550]
call fcn.0040572b
test eax, eax
jne 0x402e67
mov eax, dword [esp + 0x538]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x538]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x402e56
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402e67
push ebx
call fcn.00401ff3
push ebx
push 1
lea ecx, [esp + 0x380]
call fcn.00401455
push 0x422944
lea esi, [esp + 0x398]
call fcn.004012ca
push 0x422948
lea esi, [esp + 0x494]
call fcn.004012ca
push 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 8
pop esi
push dword [esp + 0x20]
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x440], ax
lea eax, [edi + 0x426dba]
push eax
dec eax
push eax
lea eax, [esp + 0x448]
push eax
mov dword [esp + 0x460], esi
mov dword [esp + 0x45c], ebx
call fcn.00406442
push dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x37c], ax
lea eax, [edi + 0x426dca]
push eax
lea eax, [edi + 0x426dc9]
push eax
lea eax, [esp + 0x384]
push eax
mov dword [esp + 0x39c], esi
mov dword [esp + 0x398], ebx
call fcn.00406442
push ebx
lea eax, [esp + 0x440]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x39c]
call fcn.004053ef
push ebx
lea eax, [esp + 0x37c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x498]
call fcn.004053ef
push ebx
push 1
lea ecx, [esp + 0x380]
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x444]
call fcn.00401455
add dword [esp + 0x14], 2
dec dword [esp + 0x10]
jne 0x402ea7
cmp dword [esp + 0x3a8], 8
mov eax, dword [esp + 0x394]
jae 0x402f89
lea eax, [esp + 0x394]
push dword [esp + 0x3a4]
lea ecx, [esp + 0x424]
push eax
xor eax, eax
call fcn.004013b7
cmp dword [esp + 0x4a4], 8
mov edi, eax
mov eax, dword [esp + 0x490]
jae 0x402fb9
lea eax, [esp + 0x490]
push dword [esp + 0x4a0]
lea ecx, [esp + 0x424]
push eax
xor eax, eax
call fcn.004013b7
cmp edi, 0xffffffff
je 0x40328b
cmp eax, 0xffffffff
je 0x40328b
sub eax, dword [esp + 0x3a4]
xor ecx, ecx
sub eax, edi
push eax
mov eax, dword [esp + 0x4a4]
add eax, edi
push eax
lea eax, [esp + 0x428]
lea edi, [esp + 0x3b8]
mov dword [esp + 0x3cc], esi
mov dword [esp + 0x3c8], ebx
mov word [esp + 0x3b8], cx
call fcn.0040151b
mov eax, edi
push eax
lea edi, [esp + 0x34]
call fcn.004049e8
xor eax, eax
mov dword [esp + 0x334], esi
mov dword [esp + 0x330], ebx
mov word [esp + 0x320], ax
jmp 0x403219
push 1
push 0x42294c
xor eax, eax
call fcn.004013b7
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4031fd
push dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x37c], ax
push ebx
lea eax, [esp + 0x328]
lea edi, [esp + 0x380]
mov dword [esp + 0x394], esi
mov dword [esp + 0x390], ebx
call fcn.0040151b
xor eax, eax
mov word [esp + 0x43c], ax
mov eax, dword [esp + 0x14]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x328]
lea edi, [esp + 0x444]
mov dword [esp + 0x458], esi
mov dword [esp + 0x454], ebx
call fcn.0040151b
push 0x422950
lea ecx, [esp + 0x37c]
call fcn.004062f8
test eax, eax
jne 0x4030ed
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x4ec]
call fcn.0040151b
push 0x422954
lea ecx, [esp + 0x37c]
call fcn.004062f8
test eax, eax
jne 0x403118
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x444]
lea edi, [esp + 0x4b4]
call fcn.0040151b
push 0x422958
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x32c]
push eax
call fcn.004041da
xor eax, eax
mov word [esp + 0x474], ax
mov eax, dword [esp + 0x330]
inc eax
lea ecx, [esp + 0x474]
mov dword [esp + 0x488], 7
mov dword [esp + 0x484], ebx
call fcn.004062c5
push 0x422960
lea eax, [esp + 0x478]
push eax
call fcn.0040629a
push ebx
lea eax, [esp + 0x324]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x47c]
call fcn.004053ef
push 0x42295c
mov eax, edi
push eax
call fcn.0040629a
mov esi, eax
lea eax, [esp + 0x304]
call fcn.00401302
push ebx
lea eax, [esp + 0x308]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x348]
call fcn.004053ef
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x30c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x47c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x444]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x380]
call fcn.00401455
push 7
pop esi
jmp 0x403219
push 0x422964
lea ecx, [esp + 0x324]
call fcn.004062f8
test eax, eax
jne 0x403219
mov byte [0x42832d], 1
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040649d
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 + 0x320]
jne 0x403049
push ebx
push 1
call fcn.00401455
lea ecx, [esp + 0x88]
call fcn.00404a66
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0040b1cd
pop ecx
push ebx
push 1
lea ecx, [esp + 0x3b8]
call fcn.00401455
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x498]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x39c]
call fcn.00401455
lea ecx, [esp + 0x5a8]
call fcn.004042e2
lea eax, [esp + 0x5a8]
push eax
mov dword [esp + 0x5ac], 0x422a40
call fcn.0040b1cd
pop ecx
push ebx
push esi
lea ecx, [esp + 0x364]
call fcn.004052f9
push ebx
push esi
lea ecx, [esp + 0x428]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x402a64
push 0x2f
push 0x4268a8
call fcn.004020d4
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ecx, esi
call fcn.0040249b
cmp dword [esp + 0x354], 8
mov eax, dword [esp + 0x340]
jae 0x40332e
lea eax, [esp + 0x340]
push eax
lea eax, [esp + 0x63c]
push 0x42297c
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
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.0040c213
pop ecx
cmp byte [0x42832d], bl
jne 0x4033ed
cmp byte [0x42832c], bl
jne 0x4033ed
lea eax, [esp + 0x404]
push eax
lea eax, [esp + 0x3b4]
push eax
lea ecx, [esp + 0x4d0]
call fcn.0040114c
lea ecx, [esp + 0x3b0]
cmp dword [esp + 0x3c0], ebx
ja 0x403311
push ebx
push 1
call fcn.00401455
cmp byte [0x42832c], bl
jne 0x4033ed
mov ebx, dword [esp + 0x24]
call fcn.0040733c
test al, al
jne 0x4033ed
push 0x32
push 0x426b28
call fcn.004020d4
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ecx, esi
jmp 0x403311
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x500]
call fcn.004010a7
xor ebx, ebx
cmp dword [esp + 0x510], ebx
jbe 0x4034d0
xor eax, eax
mov word [esp + 0x394], ax
mov eax, dword [esp + 0x4bc]
inc eax
lea ecx, [esp + 0x394]
mov dword [esp + 0x3a8], 7
mov dword [esp + 0x3a4], ebx
call fcn.004062c5
push ebx
lea eax, [esp + 0x4b0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x39c]
call fcn.004053ef
push 0x422984
mov eax, edi
push eax
call fcn.0040629a
push ebx
lea eax, [esp + 0x4e8]
push eax
or eax, 0xffffffff
call fcn.004053ef
mov esi, eax
lea eax, [esp + 0x304]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.00401455
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x35c]
push eax
call fcn.00407181
sub esp, 0x1c
lea ecx, [esp + 0x320]
mov eax, esp
push ecx
call fcn.004041b2
sub esp, 0x1c
lea ecx, [esp + 0x394]
mov eax, esp
push ecx
call fcn.004041b2
call fcn.00402538
lea ecx, [esp + 0x500]
jmp 0x403311
push 0x422988
lea esi, [esp + 0x3ec]
call fcn.004012ca
lea eax, [esp + 0xe38]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403529
lea eax, [esp + 0xe38]
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov esi, eax
lea edi, [esp + 0x3e8]
call fcn.00401370
push ebx
push 1
lea ecx, [esp + 0x30c]
call fcn.00401455
lea edx, [esp + 0x3e8]
lea ecx, [esp + 0x304]
call fcn.0040770d
mov esi, eax
lea edi, [esp + 0x3e8]
call fcn.00401370
push ebx
push 1
lea ecx, [esp + 0x30c]
call fcn.00401455
cmp dword [esp + 0x3fc], 8
mov eax, dword [esp + 0x3e8]
jae 0x40356c
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4035d3
push 0x17
push 0x426908
call fcn.004020d4
push eax
lea esi, [esp + 0x308]
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 + 0x308]
call fcn.004012ca
mov eax, esi
jmp 0x402ad2
lea edx, [esp + 0x3e8]
lea ecx, [esp + 0x3cc]
call fcn.00407995
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x4035fe
lea eax, [esp + 0x3cc]
push eax
push 0x11
push 0x426884
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x1ae9b
call fcn.0040afc2
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
and dword [esp + 0x2c], 0
pop ecx
push 0xa
push 0x69
push dword [esp + 0x24]
mov dword [esp + 0x20], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x20], eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call edi
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esp + 0x1c], eax
call fcn.0040afc2
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esp + 0x14]
push eax
call fcn.0040e670
add esp, 0xc
push 0x21
pop eax
cmp dword [esp + 0x18], eax
jbe 0x4036dd
mov ecx, dword [esp + 0x18]
add ecx, 0xffffffdf
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov cl, byte [eax + ecx]
mov edx, dword [esp + 0x14]
mov byte [edx + eax - 0x21], cl
inc eax
cmp eax, dword [esp + 0x18]
jb 0x4036c7
push 0xa
push 0x6a
push dword [esp + 0x24]
call esi
push eax
push dword [esp + 0x20]
mov dword [esp + 0x20], eax
call ebx
push eax
call edi
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esp + 0x1c], eax
call fcn.0040afc2
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esp + 0x14]
push eax
call fcn.0040e670
add esp, 0xc
push 0x21
pop eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], eax
jbe 0x403759
mov ecx, dword [esp + 0x20]
mov al, byte [eax + ecx]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x28]
mov byte [edx + ecx], al
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x18]
jb 0x403734
push 0xa
push 0x6b
push dword [esp + 0x24]
call esi
mov esi, eax
push esi
push dword [esp + 0x20]
call ebx
push eax
call edi
push esi
push dword [esp + 0x20]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0040afc2
pop ecx
push esi
mov edi, eax
push ebx
push edi
call fcn.0040e670
add esp, 0xc
push 0x21
pop eax
cmp esi, eax
jbe 0x4037ac
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x14]
mov dl, byte [eax + edi]
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, esi
jb 0x4037a1
push 0x44c
call fcn.0040c213
xor edi, edi
pop ecx
cmp eax, edi
je 0x4037d8
or dword [eax + 4], 0xffffffff
or dword [eax + 0x238], 0xffffffff
mov dword [eax], edi
mov dword [eax + 0x23c], edi
mov dword [eax + 0x240], edi
mov edi, eax
push dword [esp + 0x14]
mov ebx, edi
call fcn.0040a6a8
xor ebx, ebx
mov dword [0x428330], eax
cmp eax, ebx
je 0x4037ff
cmp edi, ebx
je 0x4037f7
call fcn.0040ae31
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x403816
push 8
call fcn.0040c213
pop ecx
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [esp + 0x14], eax
mov esi, eax
push 5
push 0x426b8c
call fcn.004020d4
cmp esi, ebx
jne 0x403832
mov eax, 0x10000
mov dword [0x428330], eax
jmp 0x40385c
cmp dword [esi], 1
je 0x40383e
mov eax, 0x80000
jmp 0x40382b
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0xd8]
call fcn.0040ac88
mov dword [0x428330], eax
cmp eax, ebx
je 0x4038bc
cmp byte [0x42832c], bl
je 0x40389c
push eax
lea eax, [esp + 0x63c]
push str.zerr__x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40040
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x2f
push 0x4268a8
call fcn.004020d4
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ecx, esi
jmp 0x403311
push dword [esp + 0x2fc]
call fcn.0040afc2
cmp dword [esi], 1
pop ecx
mov dword [esp + 0x10], eax
je 0x4038de
mov dword [0x428330], 0x80000
jmp 0x4038fa
push dword [esp + 0x2fc]
mov edi, dword [esi + 4]
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.0040ad5b
mov dword [0x428330], eax
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x403912
lea eax, [esp + 0x3cc]
push ebx
push 0x100
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x4039cb
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x40394b
lea eax, [esp + 0x3cc]
push eax
push 0x17
push 0x426984
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
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 + 0x3d4]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x3f0]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x508]
call fcn.00401455
push 0xd
jmp 0x402c9e
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x304]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403a3e
push 0x422934
push 0x13
push 0x426700
call fcn.004020d4
push eax
lea eax, [esp + 0x540]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x538]
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call fcn.0040ddc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x403a5d
lea eax, [esp + 0x3cc]
push eax
push 0x14
push 0x4269b4
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push dword [esp + 0x10]
call fcn.0040d551
pop ecx
push dword [esp + 0x14]
call fcn.0040ae6d
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 0x403ac8
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x344]
call fcn.0040548c
lea eax, [esp + 0x340]
push eax
lea edx, [esp + 0x3d0]
lea ecx, [esp + 0x3ec]
call fcn.004021e9
test al, al
je 0x403b54
push 0x42299c
push 0x17
push 0x4269ec
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x30c]
call fcn.00401455
jmp 0x403b9e
push 0x4229a0
push 0x10
push 0x426a1c
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
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 [0x42832c], bl
je 0x403bfc
cmp dword [esp + 0x3fc], 8
mov eax, dword [esp + 0x3e8]
jae 0x403bbe
lea eax, [esp + 0x3e8]
push eax
push 0x2d
push 0x426a68
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403c57
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x3e8]
push eax
call fcn.004077ea
push 0x4229a4
push 0x16
push 0x426a3c
call fcn.004020d4
push eax
lea eax, [esp + 0x640]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x638]
push eax
lea esi, [esp + 0x308]
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 + 0x3d4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x3f0]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x508]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x40c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x4d0]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x524]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x460]
call fcn.004052f9
push ebx
push esi
lea ecx, [esp + 0x4ec]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x4b4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x348]
call fcn.00401455
xor eax, eax
mov ecx, dword [esp + 0x837c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bbc8
mov esp, ebp
pop ebp
ret 0x10