Function at 0x40290a
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.0041b160
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8120], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x30], eax
xor eax, eax
push 7
pop ebx
mov word [esp + 0x20c], ax
mov word [esp + 0x308], ax
mov word [esp + 0x378], ax
mov byte [esp + 0x17], al
mov eax, 0x29a
xor edi, edi
push eax
push eax
mov dword [esp + 0x228], ebx
mov dword [esp + 0x224], edi
mov dword [esp + 0x324], ebx
mov dword [esp + 0x320], edi
mov dword [esp + 0x394], ebx
mov dword [esp + 0x390], edi
call dword [sym.imp.KERNEL32.dll_Beep]
push 3
push 0x4267fc
call fcn.004020dc
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push esi
lea ecx, [esp + 0x2d4]
mov dword [esp + 0x2e8], 0xf
mov dword [esp + 0x2e4], edi
mov byte [esp + 0x2d4], 0
call fcn.00405610
cmp dword [esp + 0x2e4], 0x10
mov ecx, dword [esp + 0x2d0]
mov eax, ecx
jae 0x4029e3
lea eax, [esp + 0x2d0]
add eax, dword [esp + 0x2e0]
cmp dword [esp + 0x2e4], 0x10
jae 0x4029fb
lea ecx, [esp + 0x2d0]
push dword [esp + 0x2c]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x2a4]
push eax
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x2b8], edi
mov word [esp + 0x2a8], dx
call fcn.00406786
lea esi, [esp + 0x298]
lea edi, [esp + 0x20c]
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 0x402a55
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x214]
call fcn.004013bf
cmp eax, 0xffffffff
setne cl
mov byte [0x4289ad], cl
test cl, cl
je 0x402aea
push 0x422a7c
push 5
push eax
lea eax, [esp + 0x218]
push eax
call fcn.0040458a
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 + 0x1f4]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0xd8
call fcn.0040c5b3
pop ecx
test eax, eax
je 0x402b06
call fcn.00406b95
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x402b0f
and dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x394]
mov ebx, esi
call fcn.00407281
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x360]
call fcn.00404537
lea eax, [esi + 0xa0]
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0x280]
call fcn.00404537
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.0040579f
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.0040579f
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.0040579f
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 + 0x408]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x1b8]
call fcn.0040145d
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1f4]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp dword [esp + 0x370], 8
mov eax, dword [esp + 0x35c]
jae 0x402c0c
lea eax, [esp + 0x35c]
push eax
push 0x10
push 0x426818
call fcn.004020dc
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1f4]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [0x4289ad], 0
mov byte [esp + 0xf], 1
je 0x402cc9
cmp dword [esp + 0x21c], 0
jbe 0x402d43
cmp dword [esp + 0x220], 8
mov eax, dword [esp + 0x20c]
mov byte [esp + 0xf], 0
jae 0x402c86
lea eax, [esp + 0x20c]
push eax
push 0x20
push 0x426838
call fcn.004020dc
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1f4]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
jmp 0x402d43
push 2
pop esi
push esi
push str.DD_Kw_
call fcn.004020dc
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402cde
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x214]
call fcn.004013bf
push esi
push 0x4267d8
mov dword [esp + 0x20], eax
call fcn.004020dc
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402d10
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x214]
call fcn.004013bf
cmp dword [esp + 0x18], 0xffffffff
je 0x402d3e
mov byte [esp + 0xf], bl
cmp eax, 0xffffffff
jne 0x402d43
mov byte [esp + 0xf], 1
push 1
call fcn.0040c5b3
pop ecx
mov ecx, dword [esp + 0x1c]
lea ebx, [esp + 0x3b0]
call fcn.00401225
xor ebx, ebx
cmp dword [esp + 0x3c0], ebx
jbe 0x402e4b
xor eax, eax
mov word [esp + 0x1b0], ax
mov eax, dword [esp + 0x318]
inc eax
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x1c4], 7
mov dword [esp + 0x1c0], ebx
call fcn.004066e2
push ebx
lea eax, [esp + 0x30c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1b8]
call fcn.0040579f
push 0x422b0c
mov eax, edi
push eax
call fcn.0040455f
push ebx
lea eax, [esp + 0x37c]
push eax
or eax, 0xffffffff
call fcn.0040579f
mov esi, eax
lea eax, [esp + 0x1d4]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.0040145d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1f0]
push eax
call fcn.0040751e
sub esp, 0x1c
lea ecx, [esp + 0x1f0]
mov eax, esp
push ecx
call fcn.00404537
sub esp, 0x1c
lea ecx, [esp + 0x228]
mov eax, esp
push ecx
call fcn.00404537
call fcn.00402780
push ebx
push 1
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x1f], 1
call fcn.0040145d
push ebx
push 1
lea ecx, [esp + 0x1dc]
call fcn.0040145d
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp byte [esp + 0xf], bl
je 0x4035e8
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402e6d
lea eax, [esp + 0x27c]
push eax
push 0x13
push 0x426878
call fcn.004020dc
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1d8]
call fcn.004012ca
mov ebx, esi
call fcn.00402128
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.0040145d
push 0x422b10
lea esi, [esp + 0x29c]
call fcn.004012ca
push ebx
push 0x421082
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x20c], 0xf
mov dword [esp + 0x208], ebx
mov byte [esp + 0x1f8], bl
call fcn.00405de5
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402f03
lea eax, [esp + 0x27c]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x40301f
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402f3e
lea eax, [esp + 0x27c]
push eax
push 0x17
push 0x4269cc
call fcn.004020dc
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x1d8]
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 + 0x1f8]
call fcn.004056a9
push esi
push edi
lea ecx, [esp + 0x2a0]
call fcn.0040145d
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x3b8]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x284]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x364]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x39c]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x2d8]
call fcn.004056a9
push esi
push edi
lea ecx, [esp + 0x380]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x310]
call fcn.0040145d
push esi
push edi
lea ecx, [esp + 0x214]
call fcn.0040145d
mov eax, ebx
jmp 0x40406a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x27c]
push eax
lea edi, [esp + 0x3c]
call fcn.004045ba
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x44], ebx
jne 0x40365a
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 0x403077
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 + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.004041bc
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x44], 6
jne 0x4030c3
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.004040e2
xor eax, eax
mov word [esp + 0x228], ax
mov eax, 0x3999
lea ecx, [esp + 0xdf0]
lea edx, [esp + 0x228]
mov dword [esp + 0x23c], 7
mov dword [esp + 0x238], ebx
call fcn.004014a6
push ebx
lea eax, [esp + 0x22c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2a0]
call fcn.0040579f
lea eax, [esp + 0x50]
call fcn.00405c81
test eax, eax
jne 0x403158
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 0x403147
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x403158
push ebx
call fcn.00401ffb
push ebx
push 1
lea ecx, [esp + 0x230]
call fcn.0040145d
push 0x422b14
lea esi, [esp + 0x344]
call fcn.004012ca
push 0x422b18
lea esi, [esp + 0x2f0]
call fcn.004012ca
push 7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 8
pop esi
push dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x2b8], ax
lea eax, [edi + 0x426e26]
push eax
dec eax
push eax
lea eax, [esp + 0x2c0]
push eax
mov dword [esp + 0x2d8], esi
mov dword [esp + 0x2d4], ebx
call fcn.004067e1
push dword [esp + 0x2c]
xor eax, eax
mov word [esp + 0x22c], ax
lea eax, [edi + 0x426eae]
push eax
lea eax, [edi + 0x426ead]
push eax
lea eax, [esp + 0x234]
push eax
mov dword [esp + 0x24c], esi
mov dword [esp + 0x248], ebx
call fcn.004067e1
push ebx
lea eax, [esp + 0x2b8]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x348]
call fcn.0040579f
push ebx
lea eax, [esp + 0x22c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2f4]
call fcn.0040579f
push ebx
push 1
lea ecx, [esp + 0x230]
call fcn.0040145d
push ebx
push 1
lea ecx, [esp + 0x2bc]
call fcn.0040145d
add dword [esp + 0x10], 2
dec dword [esp + 0x20]
jne 0x403198
cmp dword [esp + 0x354], 8
mov eax, dword [esp + 0x340]
jae 0x40327a
lea eax, [esp + 0x340]
push dword [esp + 0x350]
lea ecx, [esp + 0x29c]
push eax
xor eax, eax
call fcn.004013bf
cmp dword [esp + 0x300], 8
mov edi, eax
mov eax, dword [esp + 0x2ec]
jae 0x4032aa
lea eax, [esp + 0x2ec]
push dword [esp + 0x2fc]
lea ecx, [esp + 0x29c]
push eax
xor eax, eax
call fcn.004013bf
cmp edi, 0xffffffff
je 0x403580
cmp eax, 0xffffffff
je 0x403580
sub eax, edi
sub eax, dword [esp + 0x350]
add edi, dword [esp + 0x2fc]
push eax
xor ecx, ecx
push edi
lea eax, [esp + 0x2a0]
lea edi, [esp + 0x1dc]
mov dword [esp + 0x1f0], esi
mov dword [esp + 0x1ec], ebx
mov word [esp + 0x1dc], cx
call fcn.00401523
mov eax, edi
push eax
lea edi, [esp + 0xf4]
call fcn.00404d98
xor eax, eax
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], ax
jmp 0x40350b
push 1
push str.:eu___
xor eax, eax
call fcn.004013bf
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4034ef
push dword [esp + 0x10]
xor eax, eax
mov word [esp + 0x22c], ax
push ebx
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x230]
mov dword [esp + 0x244], esi
mov dword [esp + 0x240], ebx
call fcn.00401523
xor eax, eax
mov word [esp + 0x2b4], ax
mov eax, dword [esp + 0x10]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x2bc]
mov dword [esp + 0x2d0], esi
mov dword [esp + 0x2cc], ebx
call fcn.00401523
push 0x422b20
lea ecx, [esp + 0x22c]
call fcn.00406715
test eax, eax
jne 0x4033df
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x380]
call fcn.00401523
push 0x422b24
lea ecx, [esp + 0x22c]
call fcn.00406715
test eax, eax
jne 0x40340a
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2bc]
lea edi, [esp + 0x310]
call fcn.00401523
push 0x422b28
push 1
push dword [esp + 0x18]
lea eax, [esp + 0x1bc]
push eax
call fcn.0040458a
xor eax, eax
mov word [esp + 0x324], ax
mov eax, dword [esp + 0x1c0]
inc eax
lea ecx, [esp + 0x324]
mov dword [esp + 0x338], 7
mov dword [esp + 0x334], ebx
call fcn.004066e2
push 0x422b30
lea eax, [esp + 0x328]
push eax
call fcn.0040455f
push ebx
lea eax, [esp + 0x1b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x32c]
call fcn.0040579f
push 0x422b2c
mov eax, edi
push eax
call fcn.0040455f
mov esi, eax
lea eax, [esp + 0x194]
call fcn.00401302
push ebx
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x214]
call fcn.0040579f
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x32c]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x2bc]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x230]
call fcn.0040145d
push 7
pop esi
jmp 0x40350b
push 0x422b34
lea ecx, [esp + 0x1b4]
call fcn.00406715
test eax, eax
jne 0x40350b
mov byte [0x4289ae], 1
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0040683c
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 0x40333b
push ebx
push 1
call fcn.0040145d
lea ecx, [esp + 0x148]
call fcn.00404e16
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b569
pop ecx
push ebx
push 1
lea ecx, [esp + 0x1dc]
call fcn.0040145d
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x2f4]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x348]
call fcn.0040145d
lea ecx, [esp + 0xa8]
call fcn.00404692
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0040b569
pop ecx
push ebx
push esi
lea ecx, [esp + 0x1f8]
call fcn.004056a9
push ebx
push esi
lea ecx, [esp + 0x2a0]
call fcn.0040145d
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
cmp dword [esp + 0x21c], ebx
jne 0x40367a
push 0x422b48
push 0x16
push 0x4268a0
call fcn.004020dc
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.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
call fcn.00402300
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
call fcn.004021f9
cmp dword [esp + 0x220], 8
mov eax, dword [esp + 0x20c]
jae 0x403692
lea eax, [esp + 0x20c]
push eax
push 2
push 0x4265cc
call fcn.004020dc
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.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [0x4289ae], 0
jne 0x403931
cmp byte [0x4289ad], 0
jne 0x403931
lea eax, [esp + 0x27c]
push eax
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x364]
call fcn.004010a7
cmp dword [esp + 0x1e4], 0
lea ecx, [esp + 0x1d4]
ja 0x403675
push 0
push 1
call fcn.0040145d
cmp byte [0x4289ad], 0
jne 0x403931
lea eax, [esp + 0x18]
push eax
push 0x20019
xor edi, edi
push edi
push 0x19
push 0x426be0
mov dword [esp + 0x2c], edi
call fcn.004020dc
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403781
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x403675
push 0x12
xor eax, eax
push 0x426c14
mov dword [esp + 0x244], 7
mov dword [esp + 0x240], edi
mov word [esp + 0x230], ax
call fcn.004020dc
push eax
lea esi, [esp + 0x1d8]
call fcn.004012ca
push 0x20
push 0x426c38
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x1d8]
call fcn.004069e7
push edi
push 1
lea ecx, [esp + 0x19c]
mov esi, eax
call fcn.0040145d
push edi
push 1
lea ecx, [esp + 0x1dc]
call fcn.0040145d
cmp esi, edi
jne 0x4038ec
push 6
push 0x426c78
call fcn.004020dc
push eax
lea esi, [esp + 0x1b4]
call fcn.004012ca
cmp dword [esp + 0x1c4], 8
mov esi, dword [esp + 0x1b0]
mov edi, esi
jae 0x4038d3
lea edi, [esp + 0x1b0]
mov eax, edi
cmp dword [esp + 0x1c4], 8
mov ecx, dword [esp + 0x1c0]
lea ebx, [eax + ecx*2]
jae 0x403861
lea esi, [esp + 0x1b0]
cmp esi, ebx
je 0x40387c
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d5d7
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x403867
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x403894
lea eax, [esp + 0x1b0]
mov edi, dword [esp + 0x1c0]
push eax
mov eax, dword [esp + 0x23c]
lea ecx, [esp + 0x22c]
call fcn.00406742
test eax, eax
jne 0x4038da
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x403675
mov eax, esi
jmp 0x403846
push 0
push 1
lea ecx, [esp + 0x1b8]
call fcn.0040145d
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x230]
call fcn.0040145d
cmp byte [0x4289ad], 0
jne 0x403931
mov ebx, dword [esp + 0x1c]
call fcn.004076d9
test al, al
jne 0x403931
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x403675
push 0x422b4c
lea esi, [esp + 0x264]
call fcn.004012ca
lea eax, [esp + 0xbe8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40398b
lea eax, [esp + 0xbe8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov esi, eax
lea edi, [esp + 0x260]
call fcn.00401370
push 0
push 1
lea ecx, [esp + 0x19c]
call fcn.0040145d
lea edx, [esp + 0x260]
lea ecx, [esp + 0x194]
call fcn.00407a85
mov esi, eax
lea edi, [esp + 0x260]
call fcn.00401370
push 0
push 1
lea ecx, [esp + 0x19c]
call fcn.0040145d
cmp dword [esp + 0x274], 8
mov eax, dword [esp + 0x260]
jae 0x4039cf
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403a27
push 0x17
push 0x426950
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
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 + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x403655
lea edx, [esp + 0x260]
lea ecx, [esp + 0x244]
call fcn.00407d20
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403a52
lea eax, [esp + 0x244]
push eax
push 0x11
push 0x4268cc
call fcn.004020dc
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.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [esp + 0x17], 0
mov esi, dword [0x4289b0]
mov dword [esp + 0x24], 0x1ba1a
je 0x403ab9
xor esi, esi
inc esi
mov dword [esp + 0x24], 0x31a52
push dword [esp + 0x24]
xor ebx, ebx
call fcn.0040b35e
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
cmp esi, 0x16
jge 0x403b2c
push 0
call fcn.0040b35e
and dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
pop ecx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x69
push eax
push dword [esp + 0x38]
lea esi, [esp + 0x2c]
call fcn.004024f9
test al, al
je 0x403b5d
push 0x36
pop eax
cmp dword [esp + 0x20], eax
jle 0x403b20
mov ecx, dword [esp + 0x18]
mov cl, byte [eax + ecx]
mov edx, dword [esp + 0x10]
mov byte [edx + ebx], cl
inc ebx
inc eax
cmp eax, dword [esp + 0x20]
jl 0x403b0a
add dword [esp + 0x28], 2
cmp dword [esp + 0x28], 0x16
jl 0x403ad2
lea esi, [esp + 0x24]
lea ecx, [esp + 0x10]
call fcn.00402330
test al, al
jne 0x403b7d
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x403675
push 0x25
push 0x426980
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x403655
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403b95
lea eax, [esp + 0x244]
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 0x403c41
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403bd0
lea eax, [esp + 0x244]
push eax
push 0x17
push 0x4269cc
call fcn.004020dc
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.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 + 0x24c]
call fcn.0040145d
push esi
push 1
lea ecx, [esp + 0x268]
call fcn.0040145d
xor edi, edi
push 0xd
inc edi
jmp 0x402fa7
push ebx
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403c61
mov edi, esi
call fcn.00402296
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call fcn.0040db6c
cmp dword [esp + 0x25c], 8
mov eax, dword [esp + 0x248]
pop ecx
jae 0x403c8a
lea eax, [esp + 0x244]
push eax
push 0x14
push 0x4269fc
call fcn.004020dc
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.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 0x403cdc
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x210]
call fcn.004059e2
cmp byte [0x4289ad], 0
mov ebx, 0x4265c8
je 0x403dc4
lea eax, [esp + 0x394]
push eax
lea eax, [esp + 0x1f4]
call fcn.00404537
push 3
push 0x4267dc
call fcn.004020dc
push eax
lea esi, [esp + 0x1d8]
call fcn.004012ca
push 0x422b50
mov eax, esi
push eax
call fcn.0040455f
push 1
push ebx
call fcn.004020dc
push eax
mov eax, esi
push eax
call fcn.0040455f
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1f8]
call fcn.004058d4
push 7
push 0x4265d8
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.0040455f
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.0040455f
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x214]
call fcn.0040579f
push esi
push 1
lea ecx, [esp + 0x1dc]
call fcn.0040145d
push esi
push 1
lea ecx, [esp + 0x1f8]
call fcn.0040145d
push 3
push 0x4267e4
call fcn.004020dc
push eax
lea esi, [esp + 0x3d0]
call fcn.004012ca
push 0x422b54
mov eax, esi
push eax
call fcn.0040455f
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x214]
call fcn.0040579f
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.0040455f
push dword [esp + 0x2c]
lea eax, [esp + 0x198]
call fcn.00404537
push 0
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
call fcn.0040579f
push 0
push 1
lea ecx, [esp + 0x19c]
call fcn.0040145d
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.0040455f
mov eax, edi
push eax
lea edx, [esp + 0x248]
lea ecx, [esp + 0x264]
call fcn.00402566
test al, al
je 0x403ebf
push 0x422b58
push 0x17
push 0x426a34
call fcn.004020dc
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.00402128
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.0040145d
jmp 0x403f0d
push 0x422b5c
push 0x10
push 0x426a64
call fcn.004020dc
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.00402128
push 0
push 1
mov ecx, esi
call fcn.0040145d
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x4289ad], bl
je 0x403f6f
cmp dword [esp + 0x274], 8
mov eax, dword [esp + 0x260]
jae 0x403f2d
lea eax, [esp + 0x260]
push eax
push 0x2d
push 0x426ab0
call fcn.004020dc
push eax
lea eax, [esp + 0x3f0]
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 + 0x3f0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403fce
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x260]
push eax
call fcn.00407b6d
push 0x422b60
push 0x16
push 0x426a84
call fcn.004020dc
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.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 + 0x3d4]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x24c]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x268]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x3b8]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x284]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x364]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x39c]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x2d8]
call fcn.004056a9
push ebx
push esi
lea ecx, [esp + 0x380]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x310]
call fcn.0040145d
push ebx
push esi
lea ecx, [esp + 0x214]
call fcn.0040145d
xor eax, eax
mov ecx, dword [esp + 0x812c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bf64
mov esp, ebp
pop ebp
ret 0x10