Function at 0x402854
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.0041b0a0
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 esi
xor ebx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov word [esp + 0x1f8], cx
mov word [esp + 0x310], cx
mov word [esp + 0x380], cx
push eax
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
mov dword [esp + 0x398], esi
mov dword [esp + 0x394], ebx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x2f0], 0xf
mov dword [esp + 0x2ec], ebx
mov byte [esp + 0x2dc], bl
call fcn.00405547
cmp dword [esp + 0x2ec], 0x10
mov ecx, dword [esp + 0x2d8]
mov eax, ecx
jae 0x40290c
lea eax, [esp + 0x2d8]
add eax, dword [esp + 0x2e8]
cmp dword [esp + 0x2ec], 0x10
jae 0x402924
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], esi
mov dword [esp + 0x2c0], ebx
mov word [esp + 0x2b0], dx
call fcn.004066bd
lea esi, [esp + 0x2a0]
lea edi, [esp + 0x1f8]
call fcn.00401370
push ebx
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
cmp si, bx
jne 0x40297d
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x200]
call fcn.004013bf
mov esi, eax
cmp esi, 0xffffffff
setne al
mov byte [0x4289ad], al
cmp al, bl
je 0x402a3d
lea ecx, [esp + 0x19c]
call fcn.0040234c
mov ebx, eax
call fcn.00402174
push 0
push 1
lea ecx, [esp + 0x1a4]
call fcn.0040145d
push 0x422930
push 5
push esi
lea eax, [esp + 0x204]
push eax
call fcn.004044c1
push 0x40000
push 3
push 0x426690
call fcn.004020dc
push eax
push 7
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 + 0x218]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
xor ebx, ebx
push 0xd8
call fcn.0040c4e3
pop ecx
cmp eax, ebx
je 0x402a59
call fcn.00406acc
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x402a5f
mov dword [esp + 0x24], ebx
mov esi, ebx
lea ecx, [esp + 0x39c]
mov ebx, esi
call fcn.004071b8
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x368]
call fcn.0040446e
lea eax, [esi + 0xa0]
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0x288]
call fcn.0040446e
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.004056d6
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.004056d6
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.004056d6
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 + 0x218]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp dword [esp + 0x378], 8
mov eax, dword [esp + 0x364]
jae 0x402b5c
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 + 0x218]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [0x4289ad], 0
mov byte [esp + 0x13], 1
je 0x402c19
cmp dword [esp + 0x208], 0
jbe 0x402c93
cmp dword [esp + 0x20c], 8
mov eax, dword [esp + 0x1f8]
mov byte [esp + 0x13], 0
jae 0x402bd6
lea eax, [esp + 0x1f8]
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 + 0x218]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
jmp 0x402c93
push 2
pop esi
push esi
push str.G_G4Hnr
call fcn.004020dc
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402c2e
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x200]
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 0x402c60
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x200]
call fcn.004013bf
cmp dword [esp + 0x1c], 0xffffffff
je 0x402c8e
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x402c93
mov byte [esp + 0x13], 1
push 1
call fcn.0040c4e3
pop ecx
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x3b8]
call fcn.00401225
xor ebx, ebx
cmp dword [esp + 0x3c8], ebx
jbe 0x402d72
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.00406619
push ebx
lea eax, [esp + 0x314]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1c0]
call fcn.004056d6
push 0x422934
mov eax, edi
push eax
call fcn.00404496
push ebx
lea eax, [esp + 0x384]
push eax
or eax, 0xffffffff
call fcn.004056d6
mov esi, eax
lea eax, [esp + 0x214]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.0040145d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x19c]
push eax
call fcn.00407455
push ebx
push 1
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x23], 1
call fcn.0040145d
push ebx
push 1
lea ecx, [esp + 0x21c]
call fcn.0040145d
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp byte [esp + 0x13], bl
je 0x40350f
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402d94
lea eax, [esp + 0x284]
push eax
push 0x13
push str.__d_t
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 + 0x234]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.0040145d
push 0x422938
lea esi, [esp + 0x2a4]
call fcn.004012ca
push ebx
push 0x421052
lea ecx, [esp + 0x21c]
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], ebx
mov byte [esp + 0x21c], bl
call fcn.00405d1c
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402e2a
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 0x402f46
cmp dword [esp + 0x298], 8
mov eax, dword [esp + 0x284]
jae 0x402e65
lea eax, [esp + 0x284]
push eax
push 0x17
push str._r3bF
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 + 0x234]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
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 + 0x21c]
call fcn.004055e0
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.004055e0
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 + 0x200]
call fcn.0040145d
mov eax, ebx
jmp 0x403fa1
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.004044f1
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x4c], ebx
jne 0x403581
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 0x402f9e
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.004040f3
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x4c], 6
jne 0x402fea
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.00404019
xor eax, eax
mov word [esp + 0x1dc], ax
mov eax, 0x3999
lea ecx, [esp + 0xdf8]
lea edx, [esp + 0x1dc]
mov dword [esp + 0x1f0], 7
mov dword [esp + 0x1ec], ebx
call fcn.004014a6
push ebx
lea eax, [esp + 0x1e0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2a8]
call fcn.004056d6
lea eax, [esp + 0x58]
call fcn.00405bb8
test eax, eax
jne 0x40307f
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 0x40306e
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x40307f
push ebx
call fcn.00401ffb
push ebx
push 1
lea ecx, [esp + 0x1e4]
call fcn.0040145d
push 0x42293c
lea esi, [esp + 0x34c]
call fcn.004012ca
push 0x422940
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 + 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.00406718
push dword [esp + 0x2c]
xor eax, eax
mov word [esp + 0x1e0], ax
lea eax, [edi + 0x426eae]
push eax
lea eax, [edi + 0x426ead]
push eax
lea eax, [esp + 0x1e8]
push eax
mov dword [esp + 0x200], esi
mov dword [esp + 0x1fc], ebx
call fcn.00406718
push ebx
lea eax, [esp + 0x2c0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x350]
call fcn.004056d6
push ebx
lea eax, [esp + 0x1e0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x334]
call fcn.004056d6
push ebx
push 1
lea ecx, [esp + 0x1e4]
call fcn.0040145d
push ebx
push 1
lea ecx, [esp + 0x2c4]
call fcn.0040145d
add dword [esp + 0x14], 2
dec dword [esp + 0x20]
jne 0x4030bf
cmp dword [esp + 0x35c], 8
mov eax, dword [esp + 0x348]
jae 0x4031a1
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 0x4031d1
lea eax, [esp + 0x32c]
push dword [esp + 0x33c]
lea ecx, [esp + 0x2a4]
push eax
xor eax, eax
call fcn.004013bf
cmp edi, 0xffffffff
je 0x4034a7
cmp eax, 0xffffffff
je 0x4034a7
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 + 0x238]
mov dword [esp + 0x24c], esi
mov dword [esp + 0x248], ebx
mov word [esp + 0x238], cx
call fcn.00401523
mov eax, edi
push eax
lea edi, [esp + 0xfc]
call fcn.00404ccf
xor eax, eax
mov dword [esp + 0x1cc], esi
mov dword [esp + 0x1c8], ebx
mov word [esp + 0x1b8], ax
jmp 0x403432
push 1
push str.:eu___
xor eax, eax
call fcn.004013bf
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403416
push dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x1e0], ax
push ebx
lea eax, [esp + 0x1c0]
lea edi, [esp + 0x1e4]
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x1f4], 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 0x422948
lea ecx, [esp + 0x1e0]
call fcn.0040664c
test eax, eax
jne 0x403306
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x388]
call fcn.00401523
push 0x42294c
lea ecx, [esp + 0x1e0]
call fcn.0040664c
test eax, eax
jne 0x403331
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c4]
lea edi, [esp + 0x318]
call fcn.00401523
push 0x422950
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x1c4]
push eax
call fcn.004044c1
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.00406619
push 0x422958
lea eax, [esp + 0x2f8]
push eax
call fcn.00404496
push ebx
lea eax, [esp + 0x1bc]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2fc]
call fcn.004056d6
push 0x422954
mov eax, edi
push eax
call fcn.00404496
mov esi, eax
lea eax, [esp + 0x19c]
call fcn.00401302
push ebx
lea eax, [esp + 0x1a0]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x200]
call fcn.004056d6
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 + 0x1e4]
call fcn.0040145d
push 7
pop esi
jmp 0x403432
push 0x42295c
lea ecx, [esp + 0x1bc]
call fcn.0040664c
test eax, eax
jne 0x403432
mov byte [0x4289ae], 1
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00406773
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 0x403262
push ebx
push 1
call fcn.0040145d
lea ecx, [esp + 0x150]
call fcn.00404d4d
lea eax, [esp + 0x150]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b4a0
pop ecx
push ebx
push 1
lea ecx, [esp + 0x238]
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.004045c9
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0040b4a0
pop ecx
push ebx
push esi
lea ecx, [esp + 0x21c]
call fcn.004055e0
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 + 0x208], ebx
jne 0x4035a1
push 0x422970
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.00402174
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.004023d4
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
call fcn.00402245
cmp dword [esp + 0x20c], 8
mov eax, dword [esp + 0x1f8]
jae 0x4035b9
lea eax, [esp + 0x1f8]
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.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [0x4289ae], 0
jne 0x403858
cmp byte [0x4289ad], 0
jne 0x403858
lea eax, [esp + 0x284]
push eax
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x36c]
call fcn.004010a7
cmp dword [esp + 0x240], 0
lea ecx, [esp + 0x230]
ja 0x40359c
push 0
push 1
call fcn.0040145d
cmp byte [0x4289ad], 0
jne 0x403858
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 0x4036a8
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x40359c
push 0x12
xor eax, eax
push str._8c_
mov dword [esp + 0x1f8], 7
mov dword [esp + 0x1f4], edi
mov word [esp + 0x1e4], ax
call fcn.004020dc
push eax
lea esi, [esp + 0x234]
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 + 0x1e0]
lea ecx, [esp + 0x234]
call fcn.0040691e
push edi
push 1
lea ecx, [esp + 0x1a4]
mov esi, eax
call fcn.0040145d
push edi
push 1
lea ecx, [esp + 0x238]
call fcn.0040145d
cmp esi, edi
jne 0x403813
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 0x4037fa
lea edi, [esp + 0x1b8]
mov eax, edi
cmp dword [esp + 0x1cc], 8
mov ecx, dword [esp + 0x1c8]
lea ebx, [eax + ecx*2]
jae 0x403788
lea esi, [esp + 0x1b8]
cmp esi, ebx
je 0x4037a3
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d3cd
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x40378e
cmp dword [esp + 0x1cc], 8
mov eax, dword [esp + 0x1b8]
jae 0x4037bb
lea eax, [esp + 0x1b8]
mov edi, dword [esp + 0x1c8]
push eax
mov eax, dword [esp + 0x1f0]
lea ecx, [esp + 0x1e0]
call fcn.00406679
test eax, eax
jne 0x403801
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x40359c
mov eax, esi
jmp 0x40376d
push 0
push 1
lea ecx, [esp + 0x1c0]
call fcn.0040145d
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x1e4]
call fcn.0040145d
cmp byte [0x4289ad], 0
jne 0x403858
mov ebx, dword [esp + 0x24]
call fcn.00407610
test al, al
jne 0x403858
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x40359c
push 0x422974
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 0x4038b2
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.004079bc
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 0x4038f6
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40394e
push 0x17
push str._3bF
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ebx, esi
call fcn.00402174
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 0x40357c
lea edx, [esp + 0x268]
lea ecx, [esp + 0x24c]
call fcn.00407c57
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403979
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.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
cmp byte [esp + 0x1b], 0
mov esi, dword [0x4289b0]
push 7
pop ebx
mov dword [esp + 0x30], 0x1b9c8
je 0x4039e6
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.0040b295
add ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], esi
cmp esi, ebx
jge 0x403a63
push 0
call fcn.0040b295
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.004025cd
test al, al
je 0x403a94
push 0x36
pop eax
cmp dword [esp + 0x20], eax
jle 0x403a58
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 0x403a3b
add dword [esp + 0x28], 2
cmp dword [esp + 0x28], ebx
jl 0x403a03
lea esi, [esp + 0x30]
lea ecx, [esp + 0x14]
call fcn.00402404
test al, al
jne 0x403ab4
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov ecx, esi
jmp 0x40359c
push 0x25
push 0x426980
call fcn.004020dc
push eax
lea esi, [esp + 0x1a0]
call fcn.004012ca
mov eax, esi
jmp 0x40357c
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403acc
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 0x403b78
cmp dword [esp + 0x260], 8
mov eax, dword [esp + 0x24c]
jae 0x403b07
lea eax, [esp + 0x24c]
push eax
push 0x17
push str._r3bF
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.00402174
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 0x402ece
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 0x403b98
mov edi, esi
call fcn.004022e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040d962
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
pop ecx
jae 0x403bc1
lea eax, [esp + 0x24c]
push eax
push 0x14
push str._r9u_t
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.00402174
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 0x403c13
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x1fc]
call fcn.00405919
cmp byte [0x4289ad], 0
mov ebx, 0x4265c8
je 0x403cfb
lea eax, [esp + 0x39c]
push eax
lea eax, [esp + 0x218]
call fcn.0040446e
push 3
push 0x4267dc
call fcn.004020dc
push eax
lea esi, [esp + 0x234]
call fcn.004012ca
push 0x422978
mov eax, esi
push eax
call fcn.00404496
push 1
push ebx
call fcn.004020dc
push eax
mov eax, esi
push eax
call fcn.00404496
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x21c]
call fcn.0040580b
push 7
push 0x4265d8
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.00404496
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.00404496
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x200]
call fcn.004056d6
push esi
push 1
lea ecx, [esp + 0x238]
call fcn.0040145d
push esi
push 1
lea ecx, [esp + 0x21c]
call fcn.0040145d
push 3
push 0x4267e4
call fcn.004020dc
push eax
lea esi, [esp + 0x3d8]
call fcn.004012ca
push 0x42297c
mov eax, esi
push eax
call fcn.00404496
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x200]
call fcn.004056d6
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.00404496
push dword [esp + 0x2c]
lea eax, [esp + 0x1a0]
call fcn.0040446e
push 0
lea eax, [esp + 0x1a0]
push eax
or eax, 0xffffffff
call fcn.004056d6
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.00404496
mov eax, edi
push eax
lea edx, [esp + 0x250]
lea ecx, [esp + 0x26c]
call fcn.0040263a
test al, al
je 0x403df6
push 0x422980
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.00402174
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x1a4]
call fcn.0040145d
jmp 0x403e44
push 0x422984
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.00402174
push 0
push 1
mov ecx, esi
call fcn.0040145d
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x4289ad], bl
je 0x403ea6
cmp dword [esp + 0x27c], 8
mov eax, dword [esp + 0x268]
jae 0x403e64
lea eax, [esp + 0x268]
push eax
push 0x2d
push str..0Z
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 0x403f05
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x268]
push eax
call fcn.00407aa4
push 0x422988
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.00402174
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.004055e0
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 + 0x200]
call fcn.0040145d
xor eax, eax
mov ecx, dword [esp + 0x8134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040be9b
mov esp, ebp
pop ebp
ret 0x10