Function at 0x40295d
Capabilities:
Create directory
Get common file path
Get file size
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x812c
call fcn.0041b210
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8128], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ebx
xor eax, eax
xor edi, edi
push esi
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x248], ebx
mov dword [esp + 0x244], edi
mov word [esp + 0x234], ax
mov dword [esp + 0x328], ebx
mov dword [esp + 0x324], edi
mov word [esp + 0x314], ax
mov dword [esp + 0x398], ebx
mov dword [esp + 0x394], edi
mov word [esp + 0x384], ax
mov byte [esp + 0x1f], al
mov dword [esp + 0x2f0], 0xf
mov dword [esp + 0x2ec], edi
mov byte [esp + 0x2dc], al
call fcn.00405662
cmp dword [esp + 0x2ec], 0x10
mov ecx, dword [esp + 0x2d8]
mov eax, ecx
jae 0x402a25
lea eax, [esp + 0x2d8]
add eax, dword [esp + 0x2e8]
cmp dword [esp + 0x2ec], 0x10
jae 0x402a3d
lea ecx, [esp + 0x2d8]
push dword [esp + 0x28]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x2ac]
push eax
mov dword [esp + 0x2c4], ebx
mov dword [esp + 0x2c0], edi
mov word [esp + 0x2b0], dx
call fcn.004067d8
lea esi, [esp + 0x2a0]
lea edi, [esp + 0x230]
call fcn.00401370
push 0
push 1
mov ecx, esi
call fcn.00401455
push 5
push 0x4267c8
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402a97
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x238]
call fcn.004013b7
cmp eax, 0xffffffff
setne cl
mov byte [0x4289ad], cl
test cl, cl
je 0x402b2c
push 0x422958
push 5
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.004045dc
push 0x40000
push 3
push 0x426690
call fcn.004020d4
push eax
push ebx
push 0x426794
call fcn.004020d4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x4267a4
call fcn.004020d4
push eax
lea esi, [esp + 0x1e0]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xd8
call fcn.0040c5f3
pop ecx
test eax, eax
je 0x402b48
call fcn.00406be7
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x402b51
and dword [esp + 0x24], 0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x39c]
mov ebx, esi
call fcn.004072d3
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x368]
call fcn.00404589
lea eax, [esi + 0xa0]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x288]
call fcn.00404589
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.004057f1
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.004057f1
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.004057f1
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.004020d4
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.00401455
lea eax, [esp + 0x3f0]
push eax
lea esi, [esp + 0x1e0]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x378], 8
mov eax, dword [esp + 0x364]
jae 0x402c4e
lea eax, [esp + 0x364]
push eax
push 0x10
push 0x426818
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [0x4289ad], 0
mov byte [esp + 0x13], 1
je 0x402d0b
cmp dword [esp + 0x240], 0
jbe 0x402d85
cmp dword [esp + 0x244], 8
mov eax, dword [esp + 0x230]
mov byte [esp + 0x13], 0
jae 0x402cc8
lea eax, [esp + 0x230]
push eax
push 0x20
push 0x426838
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
jmp 0x402d85
push 2
pop esi
push esi
push 0x4267d4
call fcn.004020d4
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402d20
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x238]
call fcn.004013b7
push esi
push 0x4267d8
mov dword [esp + 0x24], eax
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402d52
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x238]
call fcn.004013b7
cmp dword [esp + 0x1c], 0xffffffff
je 0x402d80
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x402d85
mov byte [esp + 0x13], 1
push 1
call fcn.0040c5f3
pop ecx
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x3b8]
call fcn.00401225
xor ebx, ebx
cmp dword [esp + 0x3c8], ebx
jbe 0x402e8d
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.00406734
push ebx
lea eax, [esp + 0x314]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1c0]
call fcn.004057f1
push 0x42295c
mov eax, edi
push eax
call fcn.004045b1
push ebx
lea eax, [esp + 0x384]
push eax
or eax, 0xffffffff
call fcn.004057f1
mov esi, eax
lea eax, [esp + 0x1f8]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.00401455
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1dc]
push eax
call fcn.00407570
sub esp, 0x1c
lea ecx, [esp + 0x214]
mov eax, esp
push ecx
call fcn.00404589
sub esp, 0x1c
lea ecx, [esp + 0x214]
mov eax, esp
push ecx
call fcn.00404589
call fcn.004025aa
push ebx
push 1
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x23], 1
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x200]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp byte [esp + 0x13], bl
je 0x40362a
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402eaf
lea eax, [esp + 0x284]
push eax
push 0x13
push 0x426878
call fcn.004020d4
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.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 0x422960
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.00405e37
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402f45
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 0x403061
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402f80
lea eax, [esp + 0x284]
push eax
push 0x17
push 0x4269cc
call fcn.004020d4
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.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 + 0x1e4]
call fcn.004056fb
push esi
push edi
lea ecx, [esp + 0x2a8]
call fcn.00401455
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x3c0]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x28c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x36c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x3a4]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x2e0]
call fcn.004056fb
push esi
push edi
lea ecx, [esp + 0x388]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x318]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x238]
call fcn.00401455
mov eax, ebx
jmp 0x4040bc
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.0040460c
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x4c], ebx
jne 0x40369c
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 0x4030b9
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 + 0x58]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0040420e
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x4c], 6
jne 0x403105
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.00404134
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.0040149e
push ebx
lea eax, [esp + 0x218]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2a8]
call fcn.004057f1
lea eax, [esp + 0x58]
call fcn.00405cd3
test eax, eax
jne 0x40319a
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 0x403189
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40319a
push ebx
call fcn.00401ff3
push ebx
push 1
lea ecx, [esp + 0x21c]
call fcn.00401455
push 0x422964
lea esi, [esp + 0x34c]
call fcn.004012ca
push 0x422968
lea esi, [esp + 0x330]
call fcn.004012ca
push 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 8
pop esi
push dword [esp + 0x28]
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x2c0], ax
lea eax, [edi + 0x426e26]
push eax
dec eax
push eax
lea eax, [esp + 0x2c8]
push eax
mov dword [esp + 0x2e0], esi
mov dword [esp + 0x2dc], ebx
call fcn.00406833
push dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x218], ax
lea eax, [edi + 0x426eae]
push eax
lea eax, [edi + 0x426ead]
push eax
lea eax, [esp + 0x220]
push eax
mov dword [esp + 0x238], esi
mov dword [esp + 0x234], ebx
call fcn.00406833
push ebx
lea eax, [esp + 0x2c0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x350]
call fcn.004057f1
push ebx
lea eax, [esp + 0x218]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x334]
call fcn.004057f1
push ebx
push 1
lea ecx, [esp + 0x21c]
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x2c4]
call fcn.00401455
add dword [esp + 0x14], 2
dec dword [esp + 0x20]
jne 0x4031da
cmp dword [esp + 0x35c], 8
mov eax, dword [esp + 0x348]
jae 0x4032bc
lea eax, [esp + 0x348]
push dword [esp + 0x358]
lea ecx, [esp + 0x2a4]
push eax
xor eax, eax
call fcn.004013b7
cmp dword [esp + 0x340], 8
mov edi, eax
mov eax, dword [esp + 0x32c]
jae 0x4032ec
lea eax, [esp + 0x32c]
push dword [esp + 0x33c]
lea ecx, [esp + 0x2a4]
push eax
xor eax, eax
call fcn.004013b7
cmp edi, 0xffffffff
je 0x4035c2
cmp eax, 0xffffffff
je 0x4035c2
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.0040151b
mov eax, edi
push eax
lea edi, [esp + 0xfc]
call fcn.00404dea
xor eax, eax
mov dword [esp + 0x1cc], esi
mov dword [esp + 0x1c8], ebx
mov word [esp + 0x1b8], ax
jmp 0x40354d
push 1
push str.:eu___
xor eax, eax
call fcn.004013b7
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403531
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.0040151b
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.0040151b
push 0x422970
lea ecx, [esp + 0x218]
call fcn.00406767
test eax, eax
jne 0x403421
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x388]
call fcn.0040151b
push 0x422974
lea ecx, [esp + 0x218]
call fcn.00406767
test eax, eax
jne 0x40344c
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c4]
lea edi, [esp + 0x318]
call fcn.0040151b
push 0x422978
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x1c4]
push eax
call fcn.004045dc
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.00406734
push 0x422980
lea eax, [esp + 0x2f8]
push eax
call fcn.004045b1
push ebx
lea eax, [esp + 0x1bc]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2fc]
call fcn.004057f1
push 0x42297c
mov eax, edi
push eax
call fcn.004045b1
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.004057f1
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x1a4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2fc]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2c4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x21c]
call fcn.00401455
push 7
pop esi
jmp 0x40354d
push 0x422984
lea ecx, [esp + 0x1bc]
call fcn.00406767
test eax, eax
jne 0x40354d
mov byte [0x4289ae], 1
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.0040688e
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 0x40337d
push ebx
push 1
call fcn.00401455
lea ecx, [esp + 0x150]
call fcn.00404e68
lea eax, [esp + 0x150]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b5a7
pop ecx
push ebx
push 1
lea ecx, [esp + 0x200]
call fcn.00401455
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x334]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x350]
call fcn.00401455
lea ecx, [esp + 0xb0]
call fcn.004046e4
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0040b5a7
pop ecx
push ebx
push esi
lea ecx, [esp + 0x1e4]
call fcn.004056fb
push ebx
push esi
lea ecx, [esp + 0x2a8]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
cmp dword [esp + 0x240], ebx
jne 0x4036bc
push 0x422998
push 0x16
push 0x4268a0
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x2f
push 0x4268f0
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
call fcn.004022f8
push 0x2f
push 0x4268f0
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
call fcn.004021f1
cmp dword [esp + 0x244], 8
mov eax, dword [esp + 0x230]
jae 0x4036d4
lea eax, [esp + 0x230]
push eax
push 2
push 0x4265cc
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [0x4289ae], 0
jne 0x403973
cmp byte [0x4289ad], 0
jne 0x403973
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 0x4036b7
push 0
push 1
call fcn.00401455
cmp byte [0x4289ad], 0
jne 0x403973
lea eax, [esp + 0x1c]
push eax
push 0x20019
xor edi, edi
push edi
push 0x19
push 0x426be0
mov dword [esp + 0x30], edi
call fcn.004020d4
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4037c3
push 0x32
push 0x426b70
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036b7
push 0x12
xor eax, eax
push 0x426c14
mov dword [esp + 0x230], 7
mov dword [esp + 0x22c], edi
mov word [esp + 0x21c], ax
call fcn.004020d4
push eax
lea esi, [esp + 0x1fc]
call fcn.004012ca
push 0x20
push 0x426c38
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
push eax
lea edx, [esp + 0x218]
lea ecx, [esp + 0x1fc]
call fcn.00406a39
push edi
push 1
lea ecx, [esp + 0x1a4]
mov esi, eax
call fcn.00401455
push edi
push 1
lea ecx, [esp + 0x200]
call fcn.00401455
cmp esi, edi
jne 0x40392e
push 6
push 0x426c78
call fcn.004020d4
push eax
lea esi, [esp + 0x1bc]
call fcn.004012ca
cmp dword [esp + 0x1cc], 8
mov esi, dword [esp + 0x1b8]
mov edi, esi
jae 0x403915
lea edi, [esp + 0x1b8]
mov eax, edi
cmp dword [esp + 0x1cc], 8
mov ecx, dword [esp + 0x1c8]
lea ebx, [eax + ecx*2]
jae 0x4038a3
lea esi, [esp + 0x1b8]
cmp esi, ebx
je 0x4038be
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d4dd
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4038a9
cmp dword [esp + 0x1cc], 8
mov eax, dword [esp + 0x1b8]
jae 0x4038d6
lea eax, [esp + 0x1b8]
mov edi, dword [esp + 0x1c8]
push eax
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x218]
call fcn.00406794
test eax, eax
jne 0x40391c
push 0x32
push 0x426b70
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036b7
mov eax, esi
jmp 0x403888
push 0
push 1
lea ecx, [esp + 0x1c0]
call fcn.00401455
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x21c]
call fcn.00401455
cmp byte [0x4289ad], 0
jne 0x403973
mov ebx, dword [esp + 0x24]
call fcn.0040772b
test al, al
jne 0x403973
push 0x32
push 0x426b70
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036b7
push 0x42299c
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 0x4039cd
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.00401455
lea edx, [esp + 0x268]
lea ecx, [esp + 0x19c]
call fcn.00407ad7
mov esi, eax
lea edi, [esp + 0x268]
call fcn.00401370
push 0
push 1
lea ecx, [esp + 0x1a4]
call fcn.00401455
cmp dword [esp + 0x27c], 8
mov eax, dword [esp + 0x268]
jae 0x403a11
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403a69
push 0x17
push 0x426950
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x25
push 0x426980
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
jmp 0x403697
lea edx, [esp + 0x268]
lea ecx, [esp + 0x24c]
call fcn.00407d72
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403a94
lea eax, [esp + 0x24c]
push eax
push 0x11
push 0x4268cc
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [esp + 0x1b], 0
mov esi, dword [0x4289b0]
push 4
pop ebx
mov dword [esp + 0x30], 0x1b87d
je 0x403b01
push 6
xor esi, esi
pop ebx
inc esi
mov dword [esp + 0x30], 0x31a52
push dword [esp + 0x30]
and dword [esp + 0x38], 0
call fcn.0040b39c
add ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], esi
cmp esi, ebx
jge 0x403b7e
push 0
call fcn.0040b39c
and dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
pop ecx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
add eax, 0x69
push eax
push dword [esp + 0x40]
lea esi, [esp + 0x2c]
call fcn.00402734
test al, al
je 0x403baf
push 0x36
pop eax
cmp dword [esp + 0x20], eax
jle 0x403b73
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 0x403b56
add dword [esp + 0x2c], 2
cmp dword [esp + 0x2c], ebx
jl 0x403b1e
lea esi, [esp + 0x30]
lea ecx, [esp + 0x14]
call fcn.00402794
test al, al
jne 0x403bcf
push 0x2f
push 0x4268f0
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x4036b7
push 0x25
push 0x426980
call fcn.004020d4
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
jmp 0x403697
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403be7
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 0x403c93
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403c22
lea eax, [esp + 0x24c]
push eax
push 0x17
push 0x4269cc
call fcn.004020d4
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.00402120
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.00401455
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [esp + 0x254]
call fcn.00401455
push esi
push 1
lea ecx, [esp + 0x270]
call fcn.00401455
xor edi, edi
push 0xd
inc edi
jmp 0x402fe9
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 0x403cb3
mov edi, esi
call fcn.0040228e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040da72
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
pop ecx
jae 0x403cdc
lea eax, [esp + 0x24c]
push eax
push 0x14
push 0x4269fc
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 8
push 0x426a24
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403d2e
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x234]
call fcn.00405a34
cmp byte [0x4289ad], 0
mov ebx, 0x4265c8
je 0x403e16
lea eax, [esp + 0x39c]
push eax
lea eax, [esp + 0x1e0]
call fcn.00404589
push 3
push 0x4267dc
call fcn.004020d4
push eax
lea esi, [esp + 0x1fc]
call fcn.004012ca
push 0x4229a0
mov eax, esi
push eax
call fcn.004045b1
push 1
push ebx
call fcn.004020d4
push eax
mov eax, esi
push eax
call fcn.004045b1
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1e4]
call fcn.00405926
push 7
push 0x4265d8
call fcn.004020d4
push eax
mov eax, edi
push eax
call fcn.004045b1
push 1
push ebx
call fcn.004020d4
push eax
mov eax, edi
push eax
call fcn.004045b1
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x238]
call fcn.004057f1
push esi
push 1
lea ecx, [esp + 0x200]
call fcn.00401455
push esi
push 1
lea ecx, [esp + 0x1e4]
call fcn.00401455
push 3
push 0x4267e4
call fcn.004020d4
push eax
lea esi, [esp + 0x3d8]
call fcn.004012ca
push 0x4229a4
mov eax, esi
push eax
call fcn.004045b1
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x238]
call fcn.004057f1
push 1
push ebx
call fcn.004020d4
push eax
mov eax, edi
push eax
call fcn.004045b1
push dword [esp + 0x28]
lea eax, [esp + 0x1a0]
call fcn.00404589
push 0
lea eax, [esp + 0x1a0]
push eax
or eax, 0xffffffff
call fcn.004057f1
push 0
push 1
lea ecx, [esp + 0x1a4]
call fcn.00401455
push 1
push ebx
call fcn.004020d4
push eax
mov eax, edi
push eax
call fcn.004045b1
mov eax, edi
push eax
lea edx, [esp + 0x250]
lea ecx, [esp + 0x26c]
call fcn.00402328
test al, al
je 0x403f11
push 0x4229a8
push 0x17
push 0x426a34
call fcn.004020d4
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.00402120
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x1a4]
call fcn.00401455
jmp 0x403f5f
push 0x4229ac
push 0x10
push 0x426a64
call fcn.004020d4
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.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x4289ad], bl
je 0x403fc1
cmp dword [esp + 0x27c], 8
mov eax, dword [esp + 0x268]
jae 0x403f7f
lea eax, [esp + 0x268]
push eax
push 0x2d
push 0x426ab0
call fcn.004020d4
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.004020d4
push eax
lea eax, [esp + 0x3f8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404020
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x268]
push eax
call fcn.00407bbf
push 0x4229b0
push 0x16
push 0x426a84
call fcn.004020d4
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.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 + 0x3dc]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x254]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x270]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x3c0]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x28c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x36c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x3a4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2e0]
call fcn.004056fb
push ebx
push esi
lea ecx, [esp + 0x388]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x318]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x238]
call fcn.00401455
xor eax, eax
mov ecx, dword [esp + 0x8134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bfa2
mov esp, ebp
pop ebp
ret 0x10