Function at 0x40284c
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, 0x8114
call fcn.0041ace0
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8110], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ecx, ecx
push 7
pop esi
xor ebx, ebx
mov word [esp + 0x1fc], cx
mov word [esp + 0x34c], cx
mov word [esp + 0x368], cx
push eax
lea ecx, [esp + 0x2a8]
mov dword [esp + 0x214], esi
mov dword [esp + 0x210], ebx
mov dword [esp + 0x364], esi
mov dword [esp + 0x360], ebx
mov dword [esp + 0x380], esi
mov dword [esp + 0x37c], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x2bc], 0xf
mov dword [esp + 0x2b8], ebx
mov byte [esp + 0x2a8], bl
call fcn.00405460
cmp dword [esp + 0x2b8], 0x10
mov ecx, dword [esp + 0x2a4]
mov eax, ecx
jae 0x4028fd
lea eax, [esp + 0x2a4]
add eax, dword [esp + 0x2b4]
cmp dword [esp + 0x2b8], 0x10
jae 0x402915
lea ecx, [esp + 0x2a4]
push dword [esp + 0x28]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x278]
push eax
mov dword [esp + 0x290], esi
mov dword [esp + 0x28c], ebx
mov word [esp + 0x27c], dx
call fcn.004065d6
lea esi, [esp + 0x26c]
lea edi, [esp + 0x1fc]
call fcn.00401364
push ebx
push 1
mov ecx, esi
call fcn.00401451
push 5
push 0x4267c8
call fcn.004020fb
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x40296e
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x204]
call fcn.004013b3
mov esi, eax
cmp esi, 0xffffffff
setne al
mov byte [0x4768ed], al
cmp al, bl
je 0x402a2e
lea ecx, [esp + 0x188]
call fcn.0040236b
mov ebx, eax
call fcn.00402193
push 0
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 0x4228b0
push 5
push esi
lea eax, [esp + 0x208]
push eax
call fcn.004043da
push 0x40000
push 3
push 0x426690
call fcn.004020fb
push eax
push 7
push 0x426794
call fcn.004020fb
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x4267a4
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
xor ebx, ebx
push 0xd8
call fcn.0040c123
pop ecx
cmp eax, ebx
je 0x402a4a
call fcn.004069e5
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x402a50
mov dword [esp + 0x24], ebx
mov esi, ebx
lea ecx, [esp + 0x384]
mov ebx, esi
call fcn.004070d1
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x334]
call fcn.00404387
lea eax, [esi + 0xa0]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x254]
call fcn.00404387
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1c0], ax
push ebx
lea eax, [esi + 0x1c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1c8]
mov dword [esp + 0x1dc], 7
mov dword [esp + 0x1d8], ebx
call fcn.004055ef
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.004055ef
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.004055ef
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.004020fb
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3f8]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x1c8]
call fcn.00401451
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp dword [esp + 0x344], 8
mov eax, dword [esp + 0x330]
jae 0x402b4d
lea eax, [esp + 0x330]
push eax
push 0x10
push 0x426818
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [0x4768ed], 0
mov byte [esp + 0x13], 1
je 0x402c0a
cmp dword [esp + 0x20c], 0
jbe 0x402c82
cmp dword [esp + 0x210], 8
mov eax, dword [esp + 0x1fc]
mov byte [esp + 0x13], 0
jae 0x402bc7
lea eax, [esp + 0x1fc]
push eax
push 0x20
push 0x426838
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
jmp 0x402c82
push 2
pop esi
push esi
push str.i_i.ft
call fcn.004020fb
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402c1d
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x204]
call fcn.004013b3
push esi
push 0x4267d8
mov dword [esp + 0x20], eax
call fcn.004020fb
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402c4f
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x204]
call fcn.004013b3
cmp dword [esp + 0x18], 0xffffffff
je 0x402c7d
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x402c82
mov byte [esp + 0x13], 1
push 1
call fcn.0040c123
pop ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3bc]
call fcn.00401225
cmp dword [esp + 0x3cc], 0
jbe 0x402ca9
mov byte [esp + 0x1f], 1
cmp byte [esp + 0x13], 0
je 0x403459
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
jae 0x402ccc
lea eax, [esp + 0x250]
push eax
push 0x13
push 0x426878
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.00402193
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401451
push 0x4228b4
lea esi, [esp + 0x270]
call fcn.004012da
push ebx
push 0x421022
lea ecx, [esp + 0x190]
mov dword [esp + 0x1a4], 0xf
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], bl
call fcn.00405c35
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
jae 0x402d62
lea eax, [esp + 0x250]
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 0x402e7e
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
jae 0x402d9d
lea eax, [esp + 0x250]
push eax
push 0x17
push 0x4269cc
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.00402193
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.00401451
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x190]
call fcn.004054f9
push esi
push edi
lea ecx, [esp + 0x274]
call fcn.00401451
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x3c4]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x258]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x338]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x38c]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x2ac]
call fcn.004054f9
push esi
push edi
lea ecx, [esp + 0x370]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x354]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x204]
call fcn.00401451
mov eax, ebx
jmp 0x403eba
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 + 0x250]
push eax
lea edi, [esp + 0x34]
call fcn.0040440a
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x3c], ebx
jne 0x4034cc
lea ecx, [esp + ecx + 0x30]
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 0x402ed6
push ebx
call fcn.0040201a
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 + 0x48]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0040400c
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x3c], 6
jne 0x402f22
mov eax, dword [esp + eax + 0x68]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x1d0]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xde0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00403f32
xor eax, eax
mov word [esp + 0x1e0], ax
mov eax, 0x3999
lea ecx, [esp + 0xde0]
lea edx, [esp + 0x1e0]
mov dword [esp + 0x1f4], 7
mov dword [esp + 0x1f0], ebx
call fcn.0040149a
push ebx
lea eax, [esp + 0x1e4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x274]
call fcn.004055ef
lea eax, [esp + 0x48]
call fcn.00405ad1
test eax, eax
jne 0x402fb7
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x30]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x402fa6
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402fb7
push ebx
call fcn.0040201a
push ebx
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push 0x4228b8
lea esi, [esp + 0x2e0]
call fcn.004012da
push 0x4228bc
lea esi, [esp + 0x2fc]
call fcn.004012da
push 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 8
pop esi
push dword [esp + 0x28]
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x28c], ax
lea eax, [edi + 0x426ed6]
push eax
dec eax
push eax
lea eax, [esp + 0x294]
push eax
mov dword [esp + 0x2ac], esi
mov dword [esp + 0x2a8], ebx
call fcn.00406631
push dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x1e4], ax
lea eax, [edi + 0x475346]
push eax
lea eax, [edi + 0x475345]
push eax
lea eax, [esp + 0x1ec]
push eax
mov dword [esp + 0x204], esi
mov dword [esp + 0x200], ebx
call fcn.00406631
push ebx
lea eax, [esp + 0x28c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2e4]
call fcn.004055ef
push ebx
lea eax, [esp + 0x1e4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x300]
call fcn.004055ef
push ebx
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push ebx
push 1
lea ecx, [esp + 0x290]
call fcn.00401451
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
jne 0x402ff7
cmp dword [esp + 0x2f0], 8
mov eax, dword [esp + 0x2dc]
jae 0x4030d9
lea eax, [esp + 0x2dc]
push dword [esp + 0x2ec]
lea ecx, [esp + 0x270]
push eax
xor eax, eax
call fcn.004013b3
cmp dword [esp + 0x30c], 8
mov edi, eax
mov eax, dword [esp + 0x2f8]
jae 0x403109
lea eax, [esp + 0x2f8]
push dword [esp + 0x308]
lea ecx, [esp + 0x270]
push eax
xor eax, eax
call fcn.004013b3
cmp edi, 0xffffffff
je 0x4033f3
cmp eax, 0xffffffff
je 0x4033f3
sub eax, dword [esp + 0x2ec]
xor ecx, ecx
sub eax, edi
push eax
mov eax, dword [esp + 0x30c]
add eax, edi
push eax
lea eax, [esp + 0x274]
lea edi, [esp + 0x1ac]
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1bc], ebx
mov word [esp + 0x1ac], cx
call fcn.00401517
mov eax, edi
push eax
lea edi, [esp + 0xec]
call fcn.00404be8
xor eax, eax
mov dword [esp + 0x1d4], esi
mov dword [esp + 0x1d0], ebx
mov word [esp + 0x1c0], ax
jmp 0x40337e
push 1
push str.:eu___
xor eax, eax
call fcn.004013b3
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403362
push dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x1e4], ax
push ebx
lea eax, [esp + 0x1c8]
lea edi, [esp + 0x1e8]
mov dword [esp + 0x1fc], esi
mov dword [esp + 0x1f8], ebx
call fcn.00401517
xor eax, eax
mov word [esp + 0x288], ax
mov eax, dword [esp + 0x14]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1c8]
lea edi, [esp + 0x290]
mov dword [esp + 0x2a4], esi
mov dword [esp + 0x2a0], ebx
call fcn.00401517
push 0x4228c4
lea ecx, [esp + 0x1e4]
call fcn.00406565
test eax, eax
jne 0x403240
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x370]
call fcn.00401517
push 0x4228c8
lea ecx, [esp + 0x1e4]
call fcn.00406565
test eax, eax
jne 0x40326b
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x290]
lea edi, [esp + 0x354]
call fcn.00401517
push 0x4228cc
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
call fcn.004043da
xor eax, eax
mov word [esp + 0x314], ax
mov eax, dword [esp + 0x1d0]
push 7
pop esi
inc eax
lea ecx, [esp + 0x314]
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
call fcn.00406532
push 0x4228d4
lea eax, [esp + 0x318]
push eax
call fcn.004043af
push ebx
lea eax, [esp + 0x1c4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x31c]
call fcn.004055ef
push 0x4228d0
mov eax, edi
push eax
call fcn.004043af
mov dword [esp + 0x2d4], esi
xor ecx, ecx
mov esi, eax
lea edi, [esp + 0x2c0]
mov dword [esp + 0x2d0], ebx
mov word [esp + 0x2c0], cx
call fcn.00401364
mov eax, edi
push ebx
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.004055ef
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x2c8]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x31c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x290]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x1e8]
call fcn.00401451
push 7
pop esi
jmp 0x40337e
push 0x4228d8
lea ecx, [esp + 0x1c4]
call fcn.00406565
test eax, eax
jne 0x40337e
mov byte [0x4768ee], 1
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.0040668c
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 + 0x1c0]
jne 0x40319c
push ebx
push 1
call fcn.00401451
lea ecx, [esp + 0x140]
call fcn.00404c66
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b0d6
pop ecx
push ebx
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x300]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x2e4]
call fcn.00401451
lea ecx, [esp + 0xa0]
call fcn.004044e2
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0040b0d6
pop ecx
push ebx
push esi
lea ecx, [esp + 0x190]
call fcn.004054f9
push ebx
push esi
lea ecx, [esp + 0x274]
call fcn.00401451
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esp + 0x20c], 0
jne 0x4034ec
push 0x4228ec
push 0x16
push 0x4268a0
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0x2f
push 0x4268f0
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov eax, esi
call fcn.004023f3
push 0x2f
push 0x4268f0
call fcn.004020fb
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ecx, esi
call fcn.00402264
cmp dword [esp + 0x210], 8
mov eax, dword [esp + 0x1fc]
jae 0x403504
lea eax, [esp + 0x1fc]
push eax
push 2
push 0x4265cc
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [0x4768ee], 0
jne 0x4037a3
cmp byte [0x4768ed], 0
jne 0x4037a3
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x338]
call fcn.004010a7
cmp dword [esp + 0x1b4], 0
lea ecx, [esp + 0x1a4]
ja 0x4034e7
push 0
push 1
call fcn.00401451
cmp byte [0x4768ed], 0
jne 0x4037a3
lea eax, [esp + 0x18]
push eax
push 0x20019
xor edi, edi
push edi
push 0x19
push 0x426be0
mov dword [esp + 0x2c], edi
call fcn.004020fb
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4035f3
push 0x32
push 0x426b70
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034e7
push 0x12
xor eax, eax
push 0x426c14
mov dword [esp + 0x1fc], 7
mov dword [esp + 0x1f8], edi
mov word [esp + 0x1e8], ax
call fcn.004020fb
push eax
lea esi, [esp + 0x2c4]
call fcn.004012da
push 0x20
push 0x426c38
call fcn.004020fb
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov eax, esi
push eax
lea edx, [esp + 0x1e4]
lea ecx, [esp + 0x2c4]
call fcn.00406837
push edi
push 1
lea ecx, [esp + 0x1ac]
mov esi, eax
call fcn.00401451
push edi
push 1
lea ecx, [esp + 0x2c8]
call fcn.00401451
cmp esi, edi
jne 0x40375e
push 6
push 0x426c78
call fcn.004020fb
push eax
lea esi, [esp + 0x1c4]
call fcn.004012da
cmp dword [esp + 0x1d4], 8
mov esi, dword [esp + 0x1c0]
mov edi, esi
jae 0x403745
lea edi, [esp + 0x1c0]
mov eax, edi
cmp dword [esp + 0x1d4], 8
mov ecx, dword [esp + 0x1d0]
lea ebx, [eax + ecx*2]
jae 0x4036d3
lea esi, [esp + 0x1c0]
cmp esi, ebx
je 0x4036ee
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d00d
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4036d9
cmp dword [esp + 0x1d4], 8
mov eax, dword [esp + 0x1c0]
jae 0x403706
lea eax, [esp + 0x1c0]
mov edi, dword [esp + 0x1d0]
push eax
mov eax, dword [esp + 0x1f4]
lea ecx, [esp + 0x1e4]
call fcn.00406592
test eax, eax
jne 0x40374c
push 0x32
push 0x426b70
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034e7
mov eax, esi
jmp 0x4036b8
push 0
push 1
lea ecx, [esp + 0x1c8]
call fcn.00401451
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
cmp byte [0x4768ed], 0
jne 0x4037a3
mov ebx, dword [esp + 0x24]
call fcn.00407246
test al, al
jne 0x4037a3
push 0x32
push 0x426b70
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034e7
push 0x4228f0
lea esi, [esp + 0x238]
call fcn.004012da
lea eax, [esp + 0xbd8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4037fd
lea eax, [esp + 0xbd8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov esi, eax
lea edi, [esp + 0x234]
call fcn.00401364
push 0
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
lea edx, [esp + 0x234]
lea ecx, [esp + 0x1a4]
call fcn.004075f2
mov esi, eax
lea edi, [esp + 0x234]
call fcn.00401364
push 0
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
cmp dword [esp + 0x248], 8
mov eax, dword [esp + 0x234]
jae 0x403841
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403899
push 0x17
push 0x426950
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0x25
push 0x426980
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov eax, esi
jmp 0x4034c7
lea edx, [esp + 0x234]
lea ecx, [esp + 0x218]
call fcn.0040788d
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x4038c4
lea eax, [esp + 0x218]
push eax
push 0x11
push 0x4268cc
call fcn.004020fb
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [esp + 0x1f], 0
je 0x403958
mov eax, 0x31a52
push eax
mov dword [esp + 0x1c], eax
call fcn.0040aecb
xor esi, esi
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x4752a8]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
push ebx
push dword [esi + 0x4752f8]
push eax
call fcn.0040e6c0
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x4c
jl 0x40392c
jmp 0x40399c
mov eax, 0x1c319
push eax
mov dword [esp + 0x1c], eax
call fcn.0040aecb
xor esi, esi
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x426d6c]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
push ebx
push dword [esi + 0x426e24]
push eax
call fcn.0040e6c0
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x30
jl 0x403972
lea esi, [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.00402423
test al, al
jne 0x4039cd
push 0x2f
push 0x4268f0
call fcn.004020fb
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034e7
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x4039e5
lea eax, [esp + 0x218]
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 0x403a91
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x403a20
lea eax, [esp + 0x218]
push eax
push 0x17
push 0x4269cc
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.00402193
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.00401451
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [esp + 0x220]
call fcn.00401451
push esi
push 1
lea ecx, [esp + 0x23c]
call fcn.00401451
xor edi, edi
push 0xd
inc edi
jmp 0x402e06
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403ab1
mov edi, esi
call fcn.00402301
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040d5a2
cmp dword [esp + 0x230], 8
mov eax, dword [esp + 0x21c]
pop ecx
jae 0x403ada
lea eax, [esp + 0x218]
push eax
push 0x14
push 0x4269fc
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
push 8
push 0x426a24
call fcn.004020fb
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403b2c
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x200]
call fcn.00405832
cmp byte [0x4768ed], 0
mov ebx, 0x4265c8
je 0x403c14
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x18c]
call fcn.00404387
push 3
push 0x4267dc
call fcn.004020fb
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
push 0x4228f4
mov eax, esi
push eax
call fcn.004043af
push 1
push ebx
call fcn.004020fb
push eax
mov eax, esi
push eax
call fcn.004043af
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x190]
call fcn.00405724
push 7
push 0x4265d8
call fcn.004020fb
push eax
mov eax, edi
push eax
call fcn.004043af
push 1
push ebx
call fcn.004020fb
push eax
mov eax, edi
push eax
call fcn.004043af
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.004055ef
push esi
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
push esi
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 3
push 0x4267e4
call fcn.004020fb
push eax
lea esi, [esp + 0x3a4]
call fcn.004012da
push 0x4228f8
mov eax, esi
push eax
call fcn.004043af
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.004055ef
push 1
push ebx
call fcn.004020fb
push eax
mov eax, edi
push eax
call fcn.004043af
push dword [esp + 0x28]
lea eax, [esp + 0x18c]
call fcn.00404387
push 0
lea eax, [esp + 0x18c]
push eax
or eax, 0xffffffff
call fcn.004055ef
push 0
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 1
push ebx
call fcn.004020fb
push eax
mov eax, edi
push eax
call fcn.004043af
mov eax, edi
push eax
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x238]
call fcn.004025ec
test al, al
je 0x403d0f
push 0x4228fc
push 0x17
push 0x426a34
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x190]
call fcn.00401451
jmp 0x403d5d
push 0x422900
push 0x10
push 0x426a64
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x4768ed], bl
je 0x403dbf
cmp dword [esp + 0x248], 8
mov eax, dword [esp + 0x234]
jae 0x403d7d
lea eax, [esp + 0x234]
push eax
push 0x2d
push 0x426ab0
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403e1e
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x234]
push eax
call fcn.004076da
push 0x422904
push 0x16
push 0x426a84
call fcn.004020fb
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402193
push 0
push 1
mov ecx, esi
call fcn.00401451
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x3a8]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x220]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x23c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x3c4]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x258]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x338]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x38c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x2ac]
call fcn.004054f9
push ebx
push esi
lea ecx, [esp + 0x370]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x354]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x204]
call fcn.00401451
xor eax, eax
mov ecx, dword [esp + 0x811c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bad1
mov esp, ebp
pop ebp
ret 0x10