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.0041ace0
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8370], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ecx, ecx
push 7
pop ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov word [esp + 0x340], cx
mov word [esp + 0x4ac], cx
mov word [esp + 0x4e4], cx
mov byte [esp + 0x458], cl
push eax
lea ecx, [esp + 0x45c]
mov dword [esp + 0x358], ebx
mov dword [esp + 0x354], esi
mov dword [esp + 0x4c4], ebx
mov dword [esp + 0x4c0], esi
mov dword [esp + 0x4fc], ebx
mov dword [esp + 0x4f8], esi
mov dword [esp + 0x470], 0xf
mov dword [esp + 0x46c], esi
call fcn.0040524c
cmp dword [esp + 0x46c], 0x10
mov ecx, dword [esp + 0x458]
mov eax, ecx
jae 0x402776
lea eax, [esp + 0x458]
add eax, dword [esp + 0x468]
cmp dword [esp + 0x46c], 0x10
jae 0x40278e
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], esi
mov word [esp + 0x430], dx
call fcn.004063d3
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 0x4027e8
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 [0x4282cc], cl
test cl, cl
je 0x40287d
push 0x422930
push 5
push eax
lea eax, [esp + 0x34c]
push eax
call fcn.004041c6
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.0040c203
pop ecx
test eax, eax
je 0x402899
call fcn.004067e2
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x4028a2
and dword [esp + 0x24], 0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x51c]
mov ebx, esi
call fcn.00406ece
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x4cc]
call fcn.0040419e
lea eax, [esi + 0xa0]
push eax
lea eax, [esp + 0x408]
call fcn.0040419e
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.004053db
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.004053db
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.004053db
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 0x40299b
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 [0x4282cc], 0
je 0x402ac3
cmp dword [esp + 0x350], 0
jbe 0x402b38
cmp dword [esp + 0x354], 8
mov eax, dword [esp + 0x340]
jae 0x402a0f
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 0x403302
push 0x42296c
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 0x402ad8
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 0x402b0a
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 0x402b38
cmp eax, 0xffffffff
jne 0x402a50
cmp dword [esp + 0x418], 8
mov eax, dword [esp + 0x404]
jae 0x402b50
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 0x422934
lea esi, [esp + 0x424]
call fcn.004012ca
push ebx
push 0x42106a
lea ecx, [esp + 0x364]
mov dword [esp + 0x378], 0xf
mov dword [esp + 0x374], ebx
mov byte [esp + 0x364], bl
call fcn.0040587b
cmp dword [esp + 0x418], 8
mov eax, dword [esp + 0x404]
jae 0x402be6
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 0x402cf4
cmp dword [esp + 0x418], 8
mov eax, dword [esp + 0x404]
jae 0x402c21
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.004052e5
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.004052e5
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 0x403cd1
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.004041f6
mov eax, dword [esp + 0x538]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x544], ebx
jne 0x4032e2
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 0x402d58
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.00403e23
mov eax, dword [esp + 0x538]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x544]
xor ebx, ebx
test cl, 6
jne 0x402db2
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.00403d49
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.004053db
lea eax, [esp + 0x550]
call fcn.00405717
test eax, eax
jne 0x402e53
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 0x402e42
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402e53
push ebx
call fcn.00401ff3
push ebx
push 1
lea ecx, [esp + 0x380]
call fcn.00401455
push 0x422938
lea esi, [esp + 0x398]
call fcn.004012ca
push 0x42293c
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 + 0x426d62]
push eax
dec eax
push eax
lea eax, [esp + 0x448]
push eax
mov dword [esp + 0x460], esi
mov dword [esp + 0x45c], ebx
call fcn.0040642e
push dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x37c], ax
lea eax, [edi + 0x426d72]
push eax
lea eax, [edi + 0x426d71]
push eax
lea eax, [esp + 0x384]
push eax
mov dword [esp + 0x39c], esi
mov dword [esp + 0x398], ebx
call fcn.0040642e
push ebx
lea eax, [esp + 0x440]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x39c]
call fcn.004053db
push ebx
lea eax, [esp + 0x37c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x498]
call fcn.004053db
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 0x402e93
cmp dword [esp + 0x3a8], 8
mov eax, dword [esp + 0x394]
jae 0x402f75
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 0x402fa5
lea eax, [esp + 0x490]
push dword [esp + 0x4a0]
lea ecx, [esp + 0x424]
push eax
xor eax, eax
call fcn.004013b7
cmp edi, 0xffffffff
je 0x403277
cmp eax, 0xffffffff
je 0x403277
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.004049d4
xor eax, eax
mov dword [esp + 0x334], esi
mov dword [esp + 0x330], ebx
mov word [esp + 0x320], ax
jmp 0x403205
push 1
push 0x422940
xor eax, eax
call fcn.004013b7
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4031e9
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 0x422944
lea ecx, [esp + 0x37c]
call fcn.004062e4
test eax, eax
jne 0x4030d9
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x4ec]
call fcn.0040151b
push 0x422948
lea ecx, [esp + 0x37c]
call fcn.004062e4
test eax, eax
jne 0x403104
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x444]
lea edi, [esp + 0x4b4]
call fcn.0040151b
push 0x42294c
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x32c]
push eax
call fcn.004041c6
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.004062b1
push 0x422954
lea eax, [esp + 0x478]
push eax
call fcn.00406286
push ebx
lea eax, [esp + 0x324]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x47c]
call fcn.004053db
push 0x422950
mov eax, edi
push eax
call fcn.00406286
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.004053db
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 0x403205
push 0x422958
lea ecx, [esp + 0x324]
call fcn.004062e4
test eax, eax
jne 0x403205
mov byte [0x4282cd], 1
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00406489
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 0x403035
push ebx
push 1
call fcn.00401455
lea ecx, [esp + 0x88]
call fcn.00404a52
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0040b1b7
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.004042ce
lea eax, [esp + 0x5a8]
push eax
mov dword [esp + 0x5ac], 0x422a34
call fcn.0040b1b7
pop ecx
push ebx
push esi
lea ecx, [esp + 0x364]
call fcn.004052e5
push ebx
push esi
lea ecx, [esp + 0x428]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x402a50
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 0x40331a
lea eax, [esp + 0x340]
push eax
lea eax, [esp + 0x63c]
push 0x422970
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.0040c203
pop ecx
cmp byte [0x4282cd], bl
jne 0x4033d9
cmp byte [0x4282cc], bl
jne 0x4033d9
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 0x4032fd
push ebx
push 1
call fcn.00401455
cmp byte [0x4282cc], bl
jne 0x4033d9
mov ebx, dword [esp + 0x24]
call fcn.00407326
test al, al
jne 0x4033d9
push 0x32
push 0x426b28
call fcn.004020d4
push eax
lea esi, [esp + 0x308]
call fcn.004012ca
mov ecx, esi
jmp 0x4032fd
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x500]
call fcn.004010a7
xor ebx, ebx
cmp dword [esp + 0x510], ebx
jbe 0x4034bc
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.004062b1
push ebx
lea eax, [esp + 0x4b0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x39c]
call fcn.004053db
push 0x422978
mov eax, edi
push eax
call fcn.00406286
push ebx
lea eax, [esp + 0x4e8]
push eax
or eax, 0xffffffff
call fcn.004053db
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.0040716b
sub esp, 0x1c
lea ecx, [esp + 0x320]
mov eax, esp
push ecx
call fcn.0040419e
sub esp, 0x1c
lea ecx, [esp + 0x394]
mov eax, esp
push ecx
call fcn.0040419e
call fcn.00402538
lea ecx, [esp + 0x500]
jmp 0x4032fd
push 0x42297c
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 0x403515
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.004076f7
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 0x403558
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4035bf
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 0x402abe
lea edx, [esp + 0x3e8]
lea ecx, [esp + 0x3cc]
call fcn.0040797f
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x4035ea
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.0040afac
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.0040afac
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esp + 0x14]
push eax
call fcn.0040e660
add esp, 0xc
push 0x21
pop eax
cmp dword [esp + 0x18], eax
jbe 0x4036c9
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 0x4036b3
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.0040afac
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esp + 0x14]
push eax
call fcn.0040e660
add esp, 0xc
push 0x21
pop eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], eax
jbe 0x403745
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 0x403720
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.0040afac
pop ecx
push esi
mov edi, eax
push ebx
push edi
call fcn.0040e660
add esp, 0xc
push 0x21
pop eax
cmp esi, eax
jbe 0x403798
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 0x40378d
push 0x44c
call fcn.0040c203
xor edi, edi
pop ecx
cmp eax, edi
je 0x4037c4
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.0040a692
xor ebx, ebx
mov dword [0x4282d0], eax
cmp eax, ebx
je 0x4037eb
cmp edi, ebx
je 0x4037e3
call fcn.0040ae1b
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x403802
push 8
call fcn.0040c203
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 0x40381e
mov eax, 0x10000
mov dword [0x4282d0], eax
jmp 0x403848
cmp dword [esi], 1
je 0x40382a
mov eax, 0x80000
jmp 0x403817
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0xd8]
call fcn.0040ac72
mov dword [0x4282d0], eax
cmp eax, ebx
je 0x4038a8
cmp byte [0x4282cc], bl
je 0x403888
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 0x4032fd
push dword [esp + 0x2fc]
call fcn.0040afac
cmp dword [esi], 1
pop ecx
mov dword [esp + 0x10], eax
je 0x4038ca
mov dword [0x4282d0], 0x80000
jmp 0x4038e6
push dword [esp + 0x2fc]
mov edi, dword [esi + 4]
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.0040ad45
mov dword [0x4282d0], eax
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x4038fe
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 0x4039b7
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x403937
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 0x402c8a
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 0x403a2a
push 0x42292c
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.0040ddb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3e0], 8
mov eax, dword [esp + 0x3cc]
jae 0x403a49
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.0040d541
pop ecx
push dword [esp + 0x14]
call fcn.0040ae57
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 0x403ab4
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x344]
call fcn.00405478
lea eax, [esp + 0x340]
push eax
lea edx, [esp + 0x3d0]
lea ecx, [esp + 0x3ec]
call fcn.004021e9
test al, al
je 0x403b40
push 0x422990
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 0x403b8a
push 0x422994
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 [0x4282cc], bl
je 0x403be8
cmp dword [esp + 0x3fc], 8
mov eax, dword [esp + 0x3e8]
jae 0x403baa
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 0x403c43
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x3e8]
push eax
call fcn.004077d4
push 0x422998
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.004052e5
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.0040bbb2
mov esp, ebp
pop ebp
ret 0x10