Function at 0x402972
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.0041b220
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.00405678
cmp dword [esp + 0x2e4], 0x10
mov ecx, dword [esp + 0x2d0]
mov eax, ecx
jae 0x402a4b
lea eax, [esp + 0x2d0]
add eax, dword [esp + 0x2e0]
cmp dword [esp + 0x2e4], 0x10
jae 0x402a63
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.004067ee
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 0x402abd
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 [0x4282ad], cl
test cl, cl
je 0x402b52
push 0x4229e0
push 5
push eax
lea eax, [esp + 0x218]
push eax
call fcn.004045f2
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.0040c623
pop ecx
test eax, eax
je 0x402b6e
call fcn.00406bfd
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x402b77
and dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x394]
mov ebx, esi
call fcn.004072e9
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x360]
call fcn.0040459f
lea eax, [esi + 0xa0]
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0x280]
call fcn.0040459f
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.00405807
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.00405807
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.00405807
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 0x402c74
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 [0x4282ad], 0
mov byte [esp + 0xf], 1
je 0x402d31
cmp dword [esp + 0x21c], 0
jbe 0x402dab
cmp dword [esp + 0x220], 8
mov eax, dword [esp + 0x20c]
mov byte [esp + 0xf], 0
jae 0x402cee
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 0x402dab
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 0x402d46
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 0x402d78
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 0x402da6
mov byte [esp + 0xf], bl
cmp eax, 0xffffffff
jne 0x402dab
mov byte [esp + 0xf], 1
push 1
call fcn.0040c623
pop ecx
mov ecx, dword [esp + 0x1c]
lea ebx, [esp + 0x3b0]
call fcn.00401225
xor ebx, ebx
cmp dword [esp + 0x3c0], ebx
jbe 0x402eb3
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.0040674a
push ebx
lea eax, [esp + 0x30c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1b8]
call fcn.00405807
push 0x4229e4
mov eax, edi
push eax
call fcn.004045c7
push ebx
lea eax, [esp + 0x37c]
push eax
or eax, 0xffffffff
call fcn.00405807
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.00407586
sub esp, 0x1c
lea ecx, [esp + 0x1f0]
mov eax, esp
push ecx
call fcn.0040459f
sub esp, 0x1c
lea ecx, [esp + 0x228]
mov eax, esp
push ecx
call fcn.0040459f
call fcn.004027e8
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 0x403650
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402ed5
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 0x4229e8
lea esi, [esp + 0x29c]
call fcn.004012ca
push ebx
push 0x421072
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x20c], 0xf
mov dword [esp + 0x208], ebx
mov byte [esp + 0x1f8], bl
call fcn.00405e4d
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402f6b
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 0x403087
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x402fa6
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.00405711
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.00405711
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 0x4040d2
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.00404622
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x44], ebx
jne 0x4036c2
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 0x4030df
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.00404224
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x44], 6
jne 0x40312b
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.0040414a
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.00405807
lea eax, [esp + 0x50]
call fcn.00405ce9
test eax, eax
jne 0x4031c0
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 0x4031af
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4031c0
push ebx
call fcn.00401ffb
push ebx
push 1
lea ecx, [esp + 0x230]
call fcn.0040145d
push 0x4229ec
lea esi, [esp + 0x344]
call fcn.004012ca
push 0x4229f0
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 + 0x426cee]
push eax
dec eax
push eax
lea eax, [esp + 0x2c0]
push eax
mov dword [esp + 0x2d8], esi
mov dword [esp + 0x2d4], ebx
call fcn.00406849
push dword [esp + 0x2c]
xor eax, eax
mov word [esp + 0x22c], ax
lea eax, [edi + 0x426cfe]
push eax
lea eax, [edi + 0x426cfd]
push eax
lea eax, [esp + 0x234]
push eax
mov dword [esp + 0x24c], esi
mov dword [esp + 0x248], ebx
call fcn.00406849
push ebx
lea eax, [esp + 0x2b8]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x348]
call fcn.00405807
push ebx
lea eax, [esp + 0x22c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2f4]
call fcn.00405807
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 0x403200
cmp dword [esp + 0x354], 8
mov eax, dword [esp + 0x340]
jae 0x4032e2
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 0x403312
lea eax, [esp + 0x2ec]
push dword [esp + 0x2fc]
lea ecx, [esp + 0x29c]
push eax
xor eax, eax
call fcn.004013bf
cmp edi, 0xffffffff
je 0x4035e8
cmp eax, 0xffffffff
je 0x4035e8
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.00404e00
xor eax, eax
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], ax
jmp 0x403573
push 1
push str.:eu___
xor eax, eax
call fcn.004013bf
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x403557
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 0x4229f8
lea ecx, [esp + 0x22c]
call fcn.0040677d
test eax, eax
jne 0x403447
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x380]
call fcn.00401523
push 0x4229fc
lea ecx, [esp + 0x22c]
call fcn.0040677d
test eax, eax
jne 0x403472
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2bc]
lea edi, [esp + 0x310]
call fcn.00401523
push 0x422a00
push 1
push dword [esp + 0x18]
lea eax, [esp + 0x1bc]
push eax
call fcn.004045f2
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.0040674a
push 0x422a08
lea eax, [esp + 0x328]
push eax
call fcn.004045c7
push ebx
lea eax, [esp + 0x1b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x32c]
call fcn.00405807
push 0x422a04
mov eax, edi
push eax
call fcn.004045c7
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.00405807
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 0x403573
push 0x422a0c
lea ecx, [esp + 0x1b4]
call fcn.0040677d
test eax, eax
jne 0x403573
mov byte [0x4282ae], 1
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.004068a4
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 0x4033a3
push ebx
push 1
call fcn.0040145d
lea ecx, [esp + 0x148]
call fcn.00404e7e
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b5d1
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.004046fa
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0040b5d1
pop ecx
push ebx
push esi
lea ecx, [esp + 0x1f8]
call fcn.00405711
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 0x4036e2
push 0x422a20
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 0x4036fa
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 [0x4282ae], 0
jne 0x403999
cmp byte [0x4282ad], 0
jne 0x403999
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 0x4036dd
push 0
push 1
call fcn.0040145d
cmp byte [0x4282ad], 0
jne 0x403999
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 0x4037e9
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4036dd
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 str.:
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.00406a4f
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 0x403954
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 0x40393b
lea edi, [esp + 0x1b0]
mov eax, edi
cmp dword [esp + 0x1c4], 8
mov ecx, dword [esp + 0x1c0]
lea ebx, [eax + ecx*2]
jae 0x4038c9
lea esi, [esp + 0x1b0]
cmp esi, ebx
je 0x4038e4
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d50d
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4038cf
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x4038fc
lea eax, [esp + 0x1b0]
mov edi, dword [esp + 0x1c0]
push eax
mov eax, dword [esp + 0x23c]
lea ecx, [esp + 0x22c]
call fcn.004067aa
test eax, eax
jne 0x403942
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4036dd
mov eax, esi
jmp 0x4038ae
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 [0x4282ad], 0
jne 0x403999
mov ebx, dword [esp + 0x1c]
call fcn.00407741
test al, al
jne 0x403999
push 0x32
push 0x426b70
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4036dd
push 0x422a24
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 0x4039f3
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.00407aed
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 0x403a37
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403a8f
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 0x4036bd
lea edx, [esp + 0x260]
lea ecx, [esp + 0x244]
call fcn.00407d88
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403aba
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 [0x4282b0]
mov dword [esp + 0x24], 0x1ba1a
je 0x403b21
xor esi, esi
inc esi
mov dword [esp + 0x24], 0x31a52
push dword [esp + 0x24]
xor ebx, ebx
call fcn.0040b3c6
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
cmp esi, 0xa
jge 0x403b94
push 0
call fcn.0040b3c6
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 0x403bc5
push 0x36
pop eax
cmp dword [esp + 0x20], eax
jle 0x403b88
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 0x403b72
add dword [esp + 0x28], 2
cmp dword [esp + 0x28], 0xa
jl 0x403b3a
lea esi, [esp + 0x24]
lea ecx, [esp + 0x10]
call fcn.00402330
test al, al
jne 0x403be5
push 0x2f
push 0x4268f0
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4036dd
push 0x25
push 0x426980
call fcn.004020dc
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x4036bd
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403bfd
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 0x403ca9
cmp dword [esp + 0x258], 8
mov eax, dword [esp + 0x244]
jae 0x403c38
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 0x40300f
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 0x403cc9
mov edi, esi
call fcn.00402296
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call fcn.0040daa2
cmp dword [esp + 0x25c], 8
mov eax, dword [esp + 0x248]
pop ecx
jae 0x403cf2
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 0x403d44
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x210]
call fcn.00405a4a
cmp byte [0x4282ad], 0
mov ebx, 0x4265c8
je 0x403e2c
lea eax, [esp + 0x394]
push eax
lea eax, [esp + 0x1f4]
call fcn.0040459f
push 3
push 0x4267dc
call fcn.004020dc
push eax
lea esi, [esp + 0x1d8]
call fcn.004012ca
push 0x422a28
mov eax, esi
push eax
call fcn.004045c7
push 1
push ebx
call fcn.004020dc
push eax
mov eax, esi
push eax
call fcn.004045c7
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1f8]
call fcn.0040593c
push 7
push 0x4265d8
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045c7
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045c7
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x214]
call fcn.00405807
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 0x422a2c
mov eax, esi
push eax
call fcn.004045c7
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x214]
call fcn.00405807
push 1
push ebx
call fcn.004020dc
push eax
mov eax, edi
push eax
call fcn.004045c7
push dword [esp + 0x2c]
lea eax, [esp + 0x198]
call fcn.0040459f
push 0
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
call fcn.00405807
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.004045c7
mov eax, edi
push eax
lea edx, [esp + 0x248]
lea ecx, [esp + 0x264]
call fcn.00402566
test al, al
je 0x403f27
push 0x422a30
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 0x403f75
push 0x422a34
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 [0x4282ad], bl
je 0x403fd7
cmp dword [esp + 0x274], 8
mov eax, dword [esp + 0x260]
jae 0x403f95
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 0x404036
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x260]
push eax
call fcn.00407bd5
push 0x422a38
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.00405711
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.0040bfcc
mov esp, ebp
pop ebp
ret 0x10