Function at 0x402b2a
Capabilities:
Create directory
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.0041b400
mov eax, dword [0x4265d4]
xor eax, esp
mov dword [esp + 0x8120], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 7
pop ebx
mov dword [esp + 0x30], eax
xor eax, eax
xor edi, edi
push 0x3e7
push 0x1bc
mov dword [esp + 0x224], ebx
mov dword [esp + 0x220], edi
mov word [esp + 0x210], ax
mov dword [esp + 0x358], ebx
mov dword [esp + 0x354], edi
mov word [esp + 0x344], ax
mov dword [esp + 0x374], ebx
mov dword [esp + 0x370], edi
mov word [esp + 0x360], ax
mov byte [esp + 0x1b], al
call dword [sym.imp.KERNEL32.dll_Beep]
push esi
lea ecx, [esp + 0x2ec]
mov dword [esp + 0x3dc], 0xe020b01
mov dword [esp + 0x3e0], 0xf040e03
mov dword [esp + 0x3e4], 0xe060f05
mov byte [esp + 0x3e8], bl
mov word [esp + 0x3e9], 0x80e
mov byte [esp + 0x3eb], 0xd
mov dword [esp + 0x3cc], 0xe0a0d09
mov dword [esp + 0x3d0], 0xd0c0a0b
mov dword [esp + 0x3d4], 0xe0e0b0d
mov dword [esp + 0x3d8], 0xf100e0f
mov dword [esp + 0x300], 0xf
mov dword [esp + 0x2fc], edi
mov byte [esp + 0x2ec], 0
call fcn.004057fa
cmp dword [esp + 0x2fc], 0x10
mov ecx, dword [esp + 0x2e8]
mov eax, ecx
jae 0x402c59
lea eax, [esp + 0x2e8]
add eax, dword [esp + 0x2f8]
cmp dword [esp + 0x2fc], 0x10
jae 0x402c71
lea ecx, [esp + 0x2e8]
push dword [esp + 0x24]
and dword [esp + 0x2e0], edi
push eax
push ecx
lea eax, [esp + 0x2d8]
xor edx, edx
push eax
mov dword [esp + 0x2f0], ebx
mov word [esp + 0x2dc], dx
call fcn.00406970
lea esi, [esp + 0x2cc]
lea edi, [esp + 0x208]
call fcn.00401370
push 0
push 1
mov ecx, esi
call fcn.00401455
push 5
push 0x4277a0
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402ccb
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x210]
call fcn.004013b7
mov edi, eax
cmp edi, 0xffffffff
setne al
mov byte [0x4299cc], al
test al, al
je 0x402d8a
call fcn.00402183
push eax
lea esi, [esp + 0x1f0]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x423a18
push 5
push edi
lea eax, [esp + 0x214]
push eax
call fcn.00404774
push 0x40000
push 3
push 0x427668
call fcn.004020d4
push eax
push 7
push str.Q6
call fcn.004020d4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x42777c
call fcn.004020d4
push eax
lea esi, [esp + 0x1f0]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xd8
call fcn.0040c7a3
pop ecx
test eax, eax
je 0x402da6
call fcn.00406d7f
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x402daf
and dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x390]
mov ebx, esi
call fcn.0040746b
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x378]
call fcn.00404721
lea eax, [esi + 0xa0]
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x298]
call fcn.00404721
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.00405989
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.00405989
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.00405989
sub esp, 0x1c
push 7
pop ecx
mov esi, edi
mov edi, esp
push 0xa
push 0x4277cc
rep movsd dword es:[edi], dword [esi]
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x408]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x1b8]
call fcn.00401455
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1f0]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x388], 8
mov eax, dword [esp + 0x374]
jae 0x402eac
lea eax, [esp + 0x374]
push eax
push 0x10
push 0x4277e0
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1f0]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [0x4299cc], 0
je 0x402fd4
cmp dword [esp + 0x218], 0
jbe 0x403049
cmp dword [esp + 0x21c], 8
mov eax, dword [esp + 0x208]
jae 0x402f20
lea eax, [esp + 0x208]
push eax
push 0x20
push 0x427800
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1f0]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x218], 0
jne 0x4037f4
push 0x423a54
push 0x16
push 0x427868
call fcn.004020d4
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.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x2f
push 0x4278b8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
call fcn.004022f5
push 2
pop esi
push esi
push 0x4277ac
call fcn.004020d4
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402fe9
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x210]
call fcn.004013b7
push esi
push 0x4277b0
mov dword [esp + 0x1c], eax
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x40301b
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x210]
call fcn.004013b7
cmp dword [esp + 0x14], 0xffffffff
je 0x403049
cmp eax, 0xffffffff
jne 0x402f61
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x403061
lea eax, [esp + 0x294]
push eax
push 0x13
push 0x427840
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 0x423a1c
lea esi, [esp + 0x2d0]
call fcn.004012ca
push ebx
push 0x42207a
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x208], 0xf
mov dword [esp + 0x204], ebx
mov byte [esp + 0x1f4], bl
call fcn.00405ec1
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x4030f7
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 + 0x14], eax
cmp eax, ebx
jne 0x403205
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x403132
lea eax, [esp + 0x294]
push eax
push 0x17
push 0x427994
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
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 + 0x1f4]
call fcn.00405893
push esi
push edi
lea ecx, [esp + 0x2d4]
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 + 0x398]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x2f0]
call fcn.00405893
push esi
push edi
lea ecx, [esp + 0x360]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x344]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x210]
call fcn.00401455
mov eax, ebx
jmp 0x404254
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x294]
push eax
lea edi, [esp + 0x3c]
call fcn.004047a4
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x44], ebx
jne 0x4037d4
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 0x40325d
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.004043a6
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x44], 6
jne 0x4032a9
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 + 0xdf0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004042cc
xor eax, eax
mov word [esp + 0x1d0], ax
mov eax, 0x3999
lea ecx, [esp + 0xdf0]
lea edx, [esp + 0x1d0]
mov dword [esp + 0x1e4], 7
mov dword [esp + 0x1e0], ebx
call fcn.0040149e
push ebx
lea eax, [esp + 0x1d4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2d4]
call fcn.00405989
lea eax, [esp + 0x50]
call fcn.00405d5d
test eax, eax
jne 0x40333e
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 0x40332d
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40333e
push ebx
call fcn.00401ff3
push ebx
push 1
lea ecx, [esp + 0x1d8]
call fcn.00401455
push 0x423a20
lea esi, [esp + 0x308]
call fcn.004012ca
push 0x423a24
lea esi, [esp + 0x324]
call fcn.004012ca
push 7
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 8
pop esi
push dword [esp + 0x24]
mov edi, dword [esp + 0x10]
xor eax, eax
mov word [esp + 0x2b4], ax
lea eax, [esp + edi + 0x3de]
push eax
dec eax
push eax
lea eax, [esp + 0x2bc]
push eax
mov dword [esp + 0x2d4], esi
mov dword [esp + 0x2d0], ebx
call fcn.004069cb
push dword [esp + 0x24]
xor eax, eax
mov word [esp + 0x1d4], ax
lea eax, [esp + edi + 0x3ce]
push eax
lea eax, [esp + edi + 0x3d1]
push eax
lea eax, [esp + 0x1dc]
push eax
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x1f0], ebx
call fcn.004069cb
push ebx
lea eax, [esp + 0x2b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x30c]
call fcn.00405989
push ebx
lea eax, [esp + 0x1d4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x328]
call fcn.00405989
push ebx
push 1
lea ecx, [esp + 0x1d8]
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x2b8]
call fcn.00401455
add dword [esp + 0xc], 2
dec dword [esp + 0x1c]
jne 0x40337e
cmp dword [esp + 0x318], 8
mov eax, dword [esp + 0x304]
jae 0x403463
lea eax, [esp + 0x304]
push dword [esp + 0x314]
lea ecx, [esp + 0x2d0]
push eax
xor eax, eax
call fcn.004013b7
cmp dword [esp + 0x334], 8
mov edi, eax
mov eax, dword [esp + 0x320]
jae 0x403493
lea eax, [esp + 0x320]
push dword [esp + 0x330]
lea ecx, [esp + 0x2d0]
push eax
xor eax, eax
call fcn.004013b7
cmp edi, 0xffffffff
je 0x403769
cmp eax, 0xffffffff
je 0x403769
sub eax, edi
sub eax, dword [esp + 0x314]
add edi, dword [esp + 0x330]
push eax
xor ecx, ecx
push edi
lea eax, [esp + 0x2d4]
lea edi, [esp + 0x22c]
mov dword [esp + 0x240], esi
mov dword [esp + 0x23c], ebx
mov word [esp + 0x22c], cx
call fcn.0040151b
mov eax, edi
push eax
lea edi, [esp + 0xf4]
call fcn.00404f82
xor eax, eax
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], ax
jmp 0x4036f4
push 1
push 0x423a28
xor eax, eax
call fcn.004013b7
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4036d8
push dword [esp + 0xc]
xor eax, eax
mov word [esp + 0x1d4], ax
push ebx
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x1d8]
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1e8], ebx
call fcn.0040151b
xor eax, eax
mov word [esp + 0x2b0], ax
mov eax, dword [esp + 0xc]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x2b8]
mov dword [esp + 0x2cc], esi
mov dword [esp + 0x2c8], ebx
call fcn.0040151b
push 0x423a2c
lea ecx, [esp + 0x1d4]
call fcn.004068ff
test eax, eax
jne 0x4035c8
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x360]
call fcn.0040151b
push 0x423a30
lea ecx, [esp + 0x1d4]
call fcn.004068ff
test eax, eax
jne 0x4035f3
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2b8]
lea edi, [esp + 0x344]
call fcn.0040151b
push 0x423a34
push 1
push dword [esp + 0x14]
lea eax, [esp + 0x1bc]
push eax
call fcn.00404774
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.004068cc
push 0x423a3c
lea eax, [esp + 0x260]
push eax
call fcn.00404749
push ebx
lea eax, [esp + 0x1b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x264]
call fcn.00405989
push 0x423a38
mov eax, edi
push eax
call fcn.00404749
mov esi, eax
lea eax, [esp + 0x194]
call fcn.00401302
push ebx
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x210]
call fcn.00405989
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 + 0x2b8]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x1d8]
call fcn.00401455
push 7
pop esi
jmp 0x4036f4
push 0x423a40
lea ecx, [esp + 0x1b4]
call fcn.004068ff
test eax, eax
jne 0x4036f4
mov byte [0x4299cd], 1
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.00406a26
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 0x403524
push ebx
push 1
call fcn.00401455
lea ecx, [esp + 0x148]
call fcn.00405000
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b751
pop ecx
push ebx
push 1
lea ecx, [esp + 0x22c]
call fcn.00401455
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x328]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x30c]
call fcn.00401455
lea ecx, [esp + 0xa8]
call fcn.0040487c
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0040b751
pop ecx
push ebx
push esi
lea ecx, [esp + 0x1f4]
call fcn.00405893
push ebx
push esi
lea ecx, [esp + 0x2d4]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x402f61
push 0x2f
push 0x4278b8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
call fcn.00402670
cmp dword [esp + 0x21c], 8
mov eax, dword [esp + 0x208]
jae 0x40380c
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x3ec]
push 0x423a58
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
push 1
call fcn.0040c7a3
cmp byte [0x4299cd], 0
pop ecx
jne 0x403aa9
cmp byte [0x4299cc], 0
jne 0x403aa9
lea eax, [esp + 0x294]
push eax
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x37c]
call fcn.004010a7
xor edi, edi
lea ecx, [esp + 0x224]
cmp dword [esp + 0x234], edi
ja 0x4037ef
push edi
push 1
call fcn.00401455
cmp byte [0x4299cc], 0
jne 0x403aa9
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push 0x19
push 0x427ba8
mov dword [esp + 0x28], edi
call fcn.004020d4
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4038f9
push 0x32
push 0x427b38
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4037ef
push 0x12
xor eax, eax
push 0x427bdc
mov dword [esp + 0x1ec], 7
mov dword [esp + 0x1e8], edi
mov word [esp + 0x1d8], ax
call fcn.004020d4
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
push 0x20
push 0x427c00
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
push eax
lea edx, [esp + 0x1d4]
lea ecx, [esp + 0x228]
call fcn.00406bd1
push edi
push 1
lea ecx, [esp + 0x19c]
mov esi, eax
call fcn.00401455
push edi
push 1
lea ecx, [esp + 0x22c]
call fcn.00401455
cmp esi, edi
jne 0x403a64
push 6
push 0x427c40
call fcn.004020d4
push eax
lea esi, [esp + 0x1b4]
call fcn.004012ca
cmp dword [esp + 0x1c4], 8
mov esi, dword [esp + 0x1b0]
mov edi, esi
jae 0x403a4b
lea edi, [esp + 0x1b0]
mov eax, edi
cmp dword [esp + 0x1c4], 8
mov ecx, dword [esp + 0x1c0]
lea ebx, [eax + ecx*2]
jae 0x4039d9
lea esi, [esp + 0x1b0]
cmp esi, ebx
je 0x4039f4
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d80b
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4039df
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x403a0c
lea eax, [esp + 0x1b0]
mov edi, dword [esp + 0x1c0]
push eax
mov eax, dword [esp + 0x1e4]
lea ecx, [esp + 0x1d4]
call fcn.0040692c
test eax, eax
jne 0x403a52
push 0x32
push 0x427b38
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4037ef
mov eax, esi
jmp 0x4039be
push 0
push 1
lea ecx, [esp + 0x1b8]
call fcn.00401455
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x1d8]
call fcn.00401455
cmp byte [0x4299cc], 0
jne 0x403aa9
mov ebx, dword [esp + 0x18]
call fcn.004078c3
test al, al
jne 0x403aa9
push 0x32
push 0x427b38
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4037ef
mov ecx, dword [esp + 0x18]
lea ebx, [esp + 0x3ac]
call fcn.00401225
xor ebx, ebx
cmp dword [esp + 0x3bc], ebx
jbe 0x403ba3
xor eax, eax
mov word [esp + 0x25c], ax
mov eax, dword [esp + 0x34c]
inc eax
lea ecx, [esp + 0x25c]
mov dword [esp + 0x270], 7
mov dword [esp + 0x26c], ebx
call fcn.004068cc
push ebx
lea eax, [esp + 0x340]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x264]
call fcn.00405989
push 0x423a60
mov eax, edi
push eax
call fcn.00404749
push ebx
lea eax, [esp + 0x35c]
push eax
or eax, 0xffffffff
call fcn.00405989
mov esi, eax
lea eax, [esp + 0x224]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.00401455
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x194]
push eax
call fcn.00407708
sub esp, 0x1c
lea ecx, [esp + 0x240]
mov eax, esp
push ecx
call fcn.00404721
sub esp, 0x1c
lea ecx, [esp + 0x1cc]
mov eax, esp
push ecx
call fcn.00404721
call fcn.00402777
push ebx
push 1
lea ecx, [esp + 0x19c]
mov byte [esp + 0x1b], 1
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x22c]
call fcn.00401455
push 0x423a64
lea esi, [esp + 0x27c]
call fcn.004012ca
lea eax, [esp + 0xbe8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403bfc
lea eax, [esp + 0xbe8]
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.00407c94
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 0x403c3f
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403ca6
push 0x17
push 0x427918
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x3e8
push 0x1b8
call dword [sym.imp.KERNEL32.dll_Beep]
push 0x25
push 0x427948
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x402fcf
lea edx, [esp + 0x278]
lea ecx, [esp + 0x240]
call fcn.00407f1c
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
jae 0x403cd1
lea eax, [esp + 0x240]
push eax
push 0x11
push 0x427894
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
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.004012ca
mov ebx, esi
call fcn.00402325
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 4
pop esi
mov dword [esp + 0x20], 0x1b6f7
cmp byte [esp + 0x13], bl
je 0x403d36
push 6
pop esi
inc ebx
mov dword [esp + 0x20], 0x318fa
push dword [esp + 0x20]
and dword [esp + 0x2c], 0
call fcn.0040b546
add esi, esi
pop ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], esi
cmp ebx, esi
jge 0x403dad
push 0
call fcn.0040b546
and dword [esp + 0x20], 0
pop ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x69]
push eax
push dword [esp + 0x38]
lea esi, [esp + 0x28]
call fcn.00402901
test al, al
je 0x403dde
push 0x21
pop eax
cmp dword [esp + 0x1c], eax
jle 0x403da4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov cl, byte [eax + ecx]
inc dword [esp + 0x28]
mov edx, dword [esp + 0xc]
inc eax
mov byte [edx + esi], cl
cmp eax, dword [esp + 0x1c]
jl 0x403d87
add ebx, 2
cmp ebx, dword [esp + 0x2c]
jl 0x403d53
lea esi, [esp + 0x20]
lea ecx, [esp + 0xc]
call fcn.00402961
test al, al
jne 0x403dfe
push 0x2f
push 0x4278b8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4037ef
push 0x25
push 0x427948
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x402fcf
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
jae 0x403e16
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 0x403ecd
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
jae 0x403e51
lea eax, [esp + 0x240]
push eax
push 0x17
push 0x427994
call fcn.004020d4
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.004012ca
mov ebx, esi
call fcn.00402325
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 + 0x3b4]
call fcn.00401455
push 0xd
jmp 0x40319b
push ebx
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403eed
mov edi, esi
call fcn.0040270d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
call fcn.0040dda0
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
pop ecx
jae 0x403f16
lea eax, [esp + 0x240]
push eax
push 0x14
push 0x4279c4
call fcn.004020d4
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.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
push 8
push 0x4279ec
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403f68
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x20c]
call fcn.00405abe
cmp byte [0x4299cc], 0
je 0x403ff2
lea eax, [esp + 0x390]
push eax
lea eax, [esp + 0x1f0]
call fcn.00404721
push 0x423a68
push 3
pop ebx
lea eax, [esp + 0x1f0]
call fcn.00405abe
push str.log.txt
lea eax, [esp + 0x1f0]
push eax
call fcn.00404749
push 0
lea eax, [esp + 0x1f0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x210]
call fcn.00405989
push 0
push 1
lea ecx, [esp + 0x1f4]
call fcn.00401455
push str.__v_
lea eax, [esp + 0x20c]
push eax
call fcn.00404749
push dword [esp + 0x24]
lea eax, [esp + 0x198]
call fcn.00404721
push 0
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x210]
call fcn.00405989
push 0
push 1
lea ecx, [esp + 0x19c]
call fcn.00401455
push 0x423a90
mov eax, edi
push eax
call fcn.00404749
mov eax, edi
push eax
lea edx, [esp + 0x244]
lea ecx, [esp + 0x27c]
call fcn.004023ee
test al, al
je 0x4040b7
push 0x423a94
push 0x17
push 0x4279fc
call fcn.004020d4
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.004012ca
mov ebx, esi
call fcn.00402325
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.00401455
jmp 0x404105
push 0x423a98
push 0x10
push 0x427a2c
call fcn.004020d4
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.004012ca
mov ebx, esi
call fcn.00402325
push 0
push 1
mov ecx, esi
call fcn.00401455
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x4299cc], bl
je 0x404167
cmp dword [esp + 0x28c], 8
mov eax, dword [esp + 0x278]
jae 0x404125
lea eax, [esp + 0x278]
push eax
push 0x2d
push 0x427a78
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x427668
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4041c6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x278]
push eax
call fcn.00407d71
push 0x423a9c
push 0x16
push 0x427a4c
call fcn.004020d4
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.004012ca
mov ebx, esi
call fcn.00402325
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 + 0x3b4]
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 + 0x398]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2f0]
call fcn.00405893
push ebx
push esi
lea ecx, [esp + 0x360]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x344]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x210]
call fcn.00401455
xor eax, eax
mov ecx, dword [esp + 0x812c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c14c
mov esp, ebp
pop ebp
ret 0x10