Function at 0x402965
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, 0x812c
call fcn.0041b200
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8128], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ecx, ecx
push 7
pop ebx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov word [esp + 0x230], cx
mov word [esp + 0x310], cx
mov word [esp + 0x380], cx
mov byte [esp + 0x1b], cl
mov byte [esp + 0x2d8], cl
push eax
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x248], ebx
mov dword [esp + 0x244], esi
mov dword [esp + 0x328], ebx
mov dword [esp + 0x324], esi
mov dword [esp + 0x398], ebx
mov dword [esp + 0x394], esi
mov dword [esp + 0x2f0], 0xf
mov dword [esp + 0x2ec], esi
call fcn.0040565a
cmp dword [esp + 0x2ec], 0x10
mov ecx, dword [esp + 0x2d8]
mov eax, ecx
jae 0x402a1d
lea eax, [esp + 0x2d8]
add eax, dword [esp + 0x2e8]
cmp dword [esp + 0x2ec], 0x10
jae 0x402a35
lea ecx, [esp + 0x2d8]
push dword [esp + 0x2c]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x2ac]
push eax
mov dword [esp + 0x2c4], ebx
mov dword [esp + 0x2c0], esi
mov word [esp + 0x2b0], dx
call fcn.004067d0
lea esi, [esp + 0x2a0]
lea edi, [esp + 0x230]
call fcn.00401370
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 5
push 0x4267c8
call fcn.004020dc
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402a8f
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x238]
call fcn.004013bf
cmp eax, 0xffffffff
setne cl
mov byte [0x4282ad], cl
test cl, cl
je 0x402b24
push 0x422908
push 5
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.004045d4
push 0x40000
push 3
push 0x426690
call fcn.004020dc
push eax
push ebx
push 0x426794
call fcn.004020dc
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x4267a4
call fcn.004020dc
push eax
lea esi, [esp + 0x1e0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0xd8
call fcn.0040c603
pop ecx
test eax, eax
je 0x402b40
call fcn.00406bdf
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x402b49
and dword [esp + 0x24], 0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x39c]
mov ebx, esi
call fcn.004072cb
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x368]
call fcn.00404581
lea eax, [esi + 0xa0]
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0x288]
call fcn.00404581
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1b8], ax
push ebx
lea eax, [esi + 0x1c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1c0]
mov dword [esp + 0x1d4], 7
mov dword [esp + 0x1d0], ebx
call fcn.004057e9
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.004057e9
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.004057e9
sub esp, 0x1c
push 7
pop ecx
mov esi, edi
mov edi, esp
push 0xa
push 0x426804
rep movsd dword es:[edi], dword [esi]
call fcn.004020dc
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x410]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x1c0]
call fcn.0040145d
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1e0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp dword [esp + 0x378], 8
mov eax, dword [esp + 0x364]
jae 0x402c46
lea eax, [esp + 0x364]
push eax
push 0x10
push 0x426818
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1e0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [0x4282ad], 0
mov byte [esp + 0x13], 1
je 0x402d03
cmp dword [esp + 0x240], 0
jbe 0x402d7d
cmp dword [esp + 0x244], 8
mov eax, dword [esp + 0x230]
mov byte [esp + 0x13], 0
jae 0x402cc0
lea eax, [esp + 0x230]
push eax
push 0x20
push 0x426838
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1e0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
jmp 0x402d7d
push 2
pop esi
push esi
push 0x4267d4
call fcn.004020dc
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402d18
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x238]
call fcn.004013bf
push esi
push 0x4267d8
mov dword [esp + 0x24], eax
call fcn.004020dc
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402d4a
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x238]
call fcn.004013bf
cmp dword [esp + 0x1c], 0xffffffff
je 0x402d78
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x402d7d
mov byte [esp + 0x13], 1
push 1
call fcn.0040c603
pop ecx
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x3b8]
call fcn.00401225
xor ebx, ebx
cmp dword [esp + 0x3c8], ebx
jbe 0x402e85
xor eax, eax
mov word [esp + 0x1b8], ax
mov eax, dword [esp + 0x320]
inc eax
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x1cc], 7
mov dword [esp + 0x1c8], ebx
call fcn.0040672c
push ebx
lea eax, [esp + 0x314]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1c0]
call fcn.004057e9
push 0x42290c
mov eax, edi
push eax
call fcn.004045a9
push ebx
lea eax, [esp + 0x384]
push eax
or eax, 0xffffffff
call fcn.004057e9
mov esi, eax
lea eax, [esp + 0x1f8]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.0040145d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1dc]
push eax
call fcn.00407568
sub esp, 0x1c
lea ecx, [esp + 0x214]
mov eax, esp
push ecx
call fcn.00404581
sub esp, 0x1c
lea ecx, [esp + 0x214]
mov eax, esp
push ecx
call fcn.00404581
call fcn.004025b2
push ebx
push 1
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x23], 1
call fcn.0040145d
push ebx
push 1
lea ecx, [esp + 0x200]
call fcn.0040145d
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp byte [esp + 0x13], bl
je 0x403622
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402ea7
lea eax, [esp + 0x284]
push eax
push 0x13
push 0x426878
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1fc]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.0040145d
push 0x422910
lea esi, [esp + 0x2a4]
call fcn.004012ca
push ebx
push 0x42106a
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1f8], 0xf
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
call fcn.00405e2f
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402f3d
lea eax, [esp + 0x284]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x403059
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402f78
lea eax, [esp + 0x284]
push eax
push 0x17
push 0x4269cc
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1fc]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.0040145d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x1e4]
call fcn.004056f3
push esi
push edi
lea ecx, [esp + 0x2a8]
call fcn.0040145d
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x3c0]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x28c]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x36c]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x3a4]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x2e0]
call fcn.004056f3
push esi
push edi
lea ecx, [esp + 0x388]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x318]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x238]
call fcn.0040145d
mov eax, ebx
jmp 0x4040b4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x284]
push eax
lea edi, [esp + 0x44]
call fcn.00404604
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x4c], ebx
jne 0x403694
lea ecx, [esp + ecx + 0x40]
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 0x4030b1
push ebx
call fcn.00401ffb
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 + 0x58]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00404206
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x4c], 6
jne 0x4030fd
mov eax, dword [esp + eax + 0x78]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x1c8]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xdf8]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040412c
xor eax, eax
mov word [esp + 0x214], ax
mov eax, 0x3999
lea ecx, [esp + 0xdf8]
lea edx, [esp + 0x214]
mov dword [esp + 0x228], 7
mov dword [esp + 0x224], ebx
call fcn.004014a6
push ebx
lea eax, [esp + 0x218]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2a8]
call fcn.004057e9
lea eax, [esp + 0x58]
call fcn.00405ccb
test eax, eax
jne 0x403192
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x40]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x403181
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x403192
push ebx
call fcn.00401ffb
push ebx
push 1
lea ecx, [esp + 0x21c]
call fcn.0040145d
push 0x422914
lea esi, [esp + 0x34c]
call fcn.004012ca
push 0x422918
lea esi, [esp + 0x330]
call fcn.004012ca
push 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 8
pop esi
push dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x2c0], ax
lea eax, [edi + 0x426cee]
push eax
dec eax
push eax
lea eax, [esp + 0x2c8]
push eax
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x2dc], ebx
call fcn.0040682b
push dword [esp + 0x2c]
xor eax, eax
mov word [esp + 0x218], ax
lea eax, [edi + 0x426cfe]
push eax
lea eax, [edi + 0x426cfd]
push eax
lea eax, [esp + 0x220]
push eax
mov dword [esp + 0x238], esi
mov dword [esp + 0x234], ebx
call fcn.0040682b
push ebx
lea eax, [esp + 0x2c0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x350]
call fcn.004057e9
push ebx
lea eax, [esp + 0x218]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x334]
call fcn.004057e9
push ebx
push 1
lea ecx, [esp + 0x21c]
call fcn.0040145d
push ebx
push 1
lea ecx, [esp + 0x2c4]
call fcn.0040145d
add dword [esp + 0x14], 2
dec dword [esp + 0x20]
jne 0x4031d2
cmp dword [esp + 0x35c], 8
mov eax, dword [esp + 0x348]
jae 0x4032b4
lea eax, [esp + 0x348]
push dword [esp + 0x358]
lea ecx, [esp + 0x2a4]
push eax
xor eax, eax
call fcn.004013bf
cmp dword [esp + 0x340], 8
mov edi, eax
mov eax, dword [esp + 0x32c]
jae 0x4032e4
lea eax, [esp + 0x32c]
push dword [esp + 0x33c]
lea ecx, [esp + 0x2a4]
push eax
xor eax, eax
call fcn.004013bf
cmp edi, 0xffffffff
je 0x4035ba
cmp eax, 0xffffffff
je 0x4035ba
sub eax, edi
sub eax, dword [esp + 0x358]
add edi, dword [esp + 0x33c]
push eax
xor ecx, ecx
push edi
lea eax, [esp + 0x2a8]
lea edi, [esp + 0x200]
mov dword [esp + 0x214], esi
mov dword [esp + 0x210], ebx
mov word [esp + 0x200], cx
call fcn.00401523
mov eax, edi
push eax
lea edi, [esp + 0xfc]
call fcn.00404de2
xor eax, eax
mov dword [esp + 0x1cc], esi
mov dword [esp + 0x1c8], ebx
mov word [esp + 0x1b8], ax
jmp 0x403545
push 1
push str.:eu___
xor eax, eax
call fcn.004013bf
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403529
push dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x218], ax
push ebx
lea eax, [esp + 0x1c0]
lea edi, [esp + 0x21c]
mov dword [esp + 0x230], esi
mov dword [esp + 0x22c], ebx
call fcn.00401523
xor eax, eax
mov word [esp + 0x2bc], ax
mov eax, dword [esp + 0x14]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1c0]
lea edi, [esp + 0x2c4]
mov dword [esp + 0x2d8], esi
mov dword [esp + 0x2d4], ebx
call fcn.00401523
push 0x422920
lea ecx, [esp + 0x218]
call fcn.0040675f
test eax, eax
jne 0x403419
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x388]
call fcn.00401523
push 0x422924
lea ecx, [esp + 0x218]
call fcn.0040675f
test eax, eax
jne 0x403444
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c4]
lea edi, [esp + 0x318]
call fcn.00401523
push 0x422928
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x1c4]
push eax
call fcn.004045d4
xor eax, eax
mov word [esp + 0x2f4], ax
mov eax, dword [esp + 0x1c8]
inc eax
lea ecx, [esp + 0x2f4]
mov dword [esp + 0x308], 7
mov dword [esp + 0x304], ebx
call fcn.0040672c
push 0x422930
lea eax, [esp + 0x2f8]
push eax
call fcn.004045a9
push ebx
lea eax, [esp + 0x1bc]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2fc]
call fcn.004057e9
push 0x42292c
mov eax, edi
push eax
call fcn.004045a9
mov esi, eax
lea eax, [esp + 0x19c]
call fcn.00401302
push ebx
lea eax, [esp + 0x1a0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x238]
call fcn.004057e9
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x1a4]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x2fc]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x2c4]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x21c]
call fcn.0040145d
push 7
pop esi
jmp 0x403545
push 0x422934
lea ecx, [esp + 0x1bc]
call fcn.0040675f
test eax, eax
jne 0x403545
mov byte [0x4282ae], 1
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00406886
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 + 0x1b8]
jne 0x403375
push ebx
push 1
call fcn.0040145d
lea ecx, [esp + 0x150]
call fcn.00404e60
lea eax, [esp + 0x150]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b5b3
pop ecx
push ebx
push 1
lea ecx, [esp + 0x200]
call fcn.0040145d
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x334]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x350]
call fcn.0040145d
lea ecx, [esp + 0xb0]
call fcn.004046dc
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0040b5b3
pop ecx
push ebx
push esi
lea ecx, [esp + 0x1e4]
call fcn.004056f3
push ebx
push esi
lea ecx, [esp + 0x2a8]
call fcn.0040145d
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
cmp dword [esp + 0x240], ebx
jne 0x4036b4
push 0x422948
push 0x16
push 0x4268a0
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
call fcn.00402300
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
call fcn.004021f9
cmp dword [esp + 0x244], 8
mov eax, dword [esp + 0x230]
jae 0x4036cc
lea eax, [esp + 0x230]
push eax
push 2
push 0x4265cc
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [0x4282ae], 0
jne 0x40396b
cmp byte [0x4282ad], 0
jne 0x40396b
lea eax, [esp + 0x284]
push eax
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0x36c]
call fcn.004010a7
cmp dword [esp + 0x208], 0
lea ecx, [esp + 0x1f8]
ja 0x4036af
push 0
push 1
call fcn.0040145d
cmp byte [0x4282ad], 0
jne 0x40396b
lea eax, [esp + 0x1c]
push eax
push 0x20019
xor edi, edi
push edi
push 0x19
push 0x426be0
mov dword [esp + 0x30], edi
call fcn.004020dc
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4037bb
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036af
push 0x12
xor eax, eax
push 0x426c14
mov dword [esp + 0x230], 7
mov dword [esp + 0x22c], edi
mov word [esp + 0x21c], ax
call fcn.004020dc
push eax
lea esi, [esp + 0x1fc]
call fcn.004012ca
push 0x20
push 0x426c38
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1fc]
call fcn.00406a31
push edi
push 1
lea ecx, [esp + 0x1a4]
mov esi, eax
call fcn.0040145d
push edi
push 1
lea ecx, [esp + 0x200]
call fcn.0040145d
cmp esi, edi
jne 0x403926
push 6
push 0x426c78
call fcn.004020dc
push eax
lea esi, [esp + 0x1bc]
call fcn.004012ca
cmp dword [esp + 0x1cc], 8
mov esi, dword [esp + 0x1b8]
mov edi, esi
jae 0x40390d
lea edi, [esp + 0x1b8]
mov eax, edi
cmp dword [esp + 0x1cc], 8
mov ecx, dword [esp + 0x1c8]
lea ebx, [eax + ecx*2]
jae 0x40389b
lea esi, [esp + 0x1b8]
cmp esi, ebx
je 0x4038b6
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d4ed
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4038a1
cmp dword [esp + 0x1cc], 8
mov eax, dword [esp + 0x1b8]
jae 0x4038ce
lea eax, [esp + 0x1b8]
mov edi, dword [esp + 0x1c8]
push eax
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x218]
call fcn.0040678c
test eax, eax
jne 0x403914
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036af
mov eax, esi
jmp 0x403880
push 0
push 1
lea ecx, [esp + 0x1c0]
call fcn.0040145d
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x21c]
call fcn.0040145d
cmp byte [0x4282ad], 0
jne 0x40396b
mov ebx, dword [esp + 0x24]
call fcn.00407723
test al, al
jne 0x40396b
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036af
push 0x42294c
lea esi, [esp + 0x26c]
call fcn.004012ca
lea eax, [esp + 0xbf0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4039c5
lea eax, [esp + 0xbf0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov esi, eax
lea edi, [esp + 0x268]
call fcn.00401370
push 0
push 1
lea ecx, [esp + 0x1a4]
call fcn.0040145d
lea edx, [esp + 0x268]
lea ecx, [esp + 0x19c]
call fcn.00407acf
mov esi, eax
lea edi, [esp + 0x268]
call fcn.00401370
push 0
push 1
lea ecx, [esp + 0x1a4]
call fcn.0040145d
cmp dword [esp + 0x27c], 8
mov eax, dword [esp + 0x268]
jae 0x403a09
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403a61
push 0x17
push 0x426950
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0x25
push 0x426980
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
jmp 0x40368f
lea edx, [esp + 0x268]
lea ecx, [esp + 0x24c]
call fcn.00407d6a
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403a8c
lea eax, [esp + 0x24c]
push eax
push 0x11
push 0x4268cc
call fcn.004020dc
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [esp + 0x1b], 0
mov esi, dword [0x4282b0]
push 8
pop ebx
mov dword [esp + 0x30], 0x1b9a0
je 0x403af9
push 9
xor esi, esi
pop ebx
inc esi
mov dword [esp + 0x30], 0x31a52
push dword [esp + 0x30]
and dword [esp + 0x38], 0
call fcn.0040b3a8
add ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], esi
cmp esi, ebx
jge 0x403b76
push 0
call fcn.0040b3a8
and dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
pop ecx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x69
push eax
push dword [esp + 0x40]
lea esi, [esp + 0x2c]
call fcn.0040273c
test al, al
je 0x403ba7
push 0x36
pop eax
cmp dword [esp + 0x20], eax
jle 0x403b6b
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov cl, byte [eax + ecx]
inc dword [esp + 0x34]
mov edx, dword [esp + 0x14]
inc eax
mov byte [edx + esi], cl
cmp eax, dword [esp + 0x20]
jl 0x403b4e
add dword [esp + 0x28], 2
cmp dword [esp + 0x28], ebx
jl 0x403b16
lea esi, [esp + 0x30]
lea ecx, [esp + 0x14]
call fcn.0040279c
test al, al
jne 0x403bc7
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036af
push 0x25
push 0x426980
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
jmp 0x40368f
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403bdf
lea eax, [esp + 0x24c]
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 0x403c8b
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403c1a
lea eax, [esp + 0x24c]
push eax
push 0x17
push 0x4269cc
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.0040145d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [esp + 0x254]
call fcn.0040145d
push esi
push 1
lea ecx, [esp + 0x270]
call fcn.0040145d
xor edi, edi
push 0xd
inc edi
jmp 0x402fe1
push ebx
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403cab
mov edi, esi
call fcn.00402296
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040da82
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
pop ecx
jae 0x403cd4
lea eax, [esp + 0x24c]
push eax
push 0x14
push 0x4269fc
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 8
push 0x426a24
call fcn.004020dc
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403d26
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x234]
call fcn.00405a2c
cmp byte [0x4282ad], 0
mov ebx, 0x4265c8
je 0x403e0e
lea eax, [esp + 0x39c]
push eax
lea eax, [esp + 0x1e0]
call fcn.00404581
push 3
push 0x4267dc
call fcn.004020dc
push eax
lea esi, [esp + 0x1fc]
call fcn.004012ca
push 0x422950
mov eax, esi
push eax
call fcn.004045a9
push 1
push ebx
call fcn.004020dc
push eax
mov eax, esi
push eax
call fcn.004045a9
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1e4]
call fcn.0040591e
push 7
push 0x4265d8
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045a9
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045a9
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x238]
call fcn.004057e9
push esi
push 1
lea ecx, [esp + 0x200]
call fcn.0040145d
push esi
push 1
lea ecx, [esp + 0x1e4]
call fcn.0040145d
push 3
push 0x4267e4
call fcn.004020dc
push eax
lea esi, [esp + 0x3d8]
call fcn.004012ca
push 0x422954
mov eax, esi
push eax
call fcn.004045a9
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x238]
call fcn.004057e9
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045a9
push dword [esp + 0x2c]
lea eax, [esp + 0x1a0]
call fcn.00404581
push 0
lea eax, [esp + 0x1a0]
push eax
or eax, 0xffffffff
call fcn.004057e9
push 0
push 1
lea ecx, [esp + 0x1a4]
call fcn.0040145d
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045a9
mov eax, edi
push eax
lea edx, [esp + 0x250]
lea ecx, [esp + 0x26c]
call fcn.00402330
test al, al
je 0x403f09
push 0x422958
push 0x17
push 0x426a34
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x1a4]
call fcn.0040145d
jmp 0x403f57
push 0x42295c
push 0x10
push 0x426a64
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x4282ad], bl
je 0x403fb9
cmp dword [esp + 0x27c], 8
mov eax, dword [esp + 0x268]
jae 0x403f77
lea eax, [esp + 0x268]
push eax
push 0x2d
push 0x426ab0
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404018
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x268]
push eax
call fcn.00407bb7
push 0x422960
push 0x16
push 0x426a84
call fcn.004020dc
push eax
lea eax, [esp + 0x3f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x3dc]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x254]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x270]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x3c0]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x28c]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x36c]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x3a4]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x2e0]
call fcn.004056f3
push ebx
push esi
lea ecx, [esp + 0x388]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x318]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x238]
call fcn.0040145d
xor eax, eax
mov ecx, dword [esp + 0x8134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bfae
mov esp, ebp
pop ebp
ret 0x10