Function at 0x4028d7
Capabilities:
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.0041ad90
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.00405475
cmp dword [esp + 0x2b8], 0x10
mov ecx, dword [esp + 0x2a4]
mov eax, ecx
jae 0x402988
lea eax, [esp + 0x2a4]
add eax, dword [esp + 0x2b4]
cmp dword [esp + 0x2b8], 0x10
jae 0x4029a0
lea ecx, [esp + 0x2a4]
push dword [esp + 0x28]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x294]
push eax
mov dword [esp + 0x2ac], esi
mov dword [esp + 0x2a8], ebx
mov word [esp + 0x298], dx
call fcn.004065eb
lea esi, [esp + 0x288]
lea edi, [esp + 0x1fc]
call fcn.00401364
push ebx
push 1
mov ecx, esi
call fcn.00401451
push 5
push 0x4267c8
call fcn.004021bc
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x4029f9
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 [0x47698d], al
cmp al, bl
je 0x402ab6
lea ecx, [esp + 0x188]
call fcn.00402429
mov ebx, eax
call fcn.00402254
push 0
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 0x422870
push 5
push esi
lea eax, [esp + 0x208]
push eax
call fcn.004043ef
push 0x40000
push 3
push 0x426690
call fcn.004021bc
push eax
push 7
push 0x426794
call fcn.004021bc
push eax
call fcn.004018cd
push 0x11
push 0x4267a4
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
xor ebx, ebx
push 0xd8
call fcn.0040c1d3
pop ecx
cmp eax, ebx
je 0x402ad2
call fcn.004069fa
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x402ad6
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x384]
call fcn.004070e6
lea eax, [ebx + 0xbc]
push eax
lea eax, [esp + 0x334]
call fcn.0040439c
lea eax, [ebx + 0xa0]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x270]
call fcn.0040439c
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp dword [esp + 0x344], 8
mov eax, dword [esp + 0x330]
jae 0x402b4a
lea eax, [esp + 0x330]
push eax
push 0x10
push 0x426818
call fcn.004021bc
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 + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [0x47698d], 0
mov byte [esp + 0x13], 1
je 0x402c0d
cmp dword [esp + 0x20c], 0
jbe 0x402c85
cmp dword [esp + 0x210], 8
mov eax, dword [esp + 0x1fc]
mov byte [esp + 0x13], 0
jae 0x402bca
lea eax, [esp + 0x1fc]
push eax
push 0x20
push 0x426838
call fcn.004021bc
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.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
jmp 0x402c85
push 2
pop esi
push esi
push 0x4267d4
call fcn.004021bc
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402c20
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.004021bc
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402c52
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 0x402c80
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x402c85
mov byte [esp + 0x13], 1
push 1
call fcn.0040c1d3
pop ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3bc]
call fcn.00401225
cmp dword [esp + 0x3cc], 0
jbe 0x402cac
mov byte [esp + 0x1f], 1
cmp byte [esp + 0x13], 0
je 0x40345c
cmp dword [esp + 0x280], 8
mov eax, dword [esp + 0x26c]
jae 0x402ccf
lea eax, [esp + 0x26c]
push eax
push 0x13
push 0x426878
call fcn.004021bc
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.00402254
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401451
push 0x422874
lea esi, [esp + 0x28c]
call fcn.004012da
push ebx
push 0x421002
lea ecx, [esp + 0x190]
mov dword [esp + 0x1a4], 0xf
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], bl
call fcn.00405c4a
cmp dword [esp + 0x280], 8
mov eax, dword [esp + 0x26c]
jae 0x402d65
lea eax, [esp + 0x26c]
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 0x402e81
cmp dword [esp + 0x280], 8
mov eax, dword [esp + 0x26c]
jae 0x402da0
lea eax, [esp + 0x26c]
push eax
push 0x17
push 0x4269cc
call fcn.004021bc
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.00402254
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.0040550e
push esi
push edi
lea ecx, [esp + 0x290]
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 + 0x274]
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.0040550e
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 0x403ecf
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 + 0x26c]
push eax
lea edi, [esp + 0x34]
call fcn.0040441f
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x3c], ebx
jne 0x4034cf
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 0x402ed9
push ebx
call fcn.004020db
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.00404021
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x3c], 6
jne 0x402f25
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.00403f47
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 + 0x290]
call fcn.00405604
lea eax, [esp + 0x48]
call fcn.00405ae6
test eax, eax
jne 0x402fba
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 0x402fa9
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402fba
push ebx
call fcn.004020db
push ebx
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push 0x422878
lea esi, [esp + 0x2e0]
call fcn.004012da
push 0x42287c
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 + 0x238], ax
lea eax, [edi + 0x426e9e]
push eax
dec eax
push eax
lea eax, [esp + 0x240]
push eax
mov dword [esp + 0x258], esi
mov dword [esp + 0x254], ebx
call fcn.00406646
push dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x1e4], ax
lea eax, [edi + 0x426f2e]
push eax
lea eax, [edi + 0x426f2d]
push eax
lea eax, [esp + 0x1ec]
push eax
mov dword [esp + 0x204], esi
mov dword [esp + 0x200], ebx
call fcn.00406646
push ebx
lea eax, [esp + 0x238]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2e4]
call fcn.00405604
push ebx
lea eax, [esp + 0x1e4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x300]
call fcn.00405604
push ebx
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push ebx
push 1
lea ecx, [esp + 0x23c]
call fcn.00401451
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
jne 0x402ffa
cmp dword [esp + 0x2f0], 8
mov eax, dword [esp + 0x2dc]
jae 0x4030dc
lea eax, [esp + 0x2dc]
push dword [esp + 0x2ec]
lea ecx, [esp + 0x28c]
push eax
xor eax, eax
call fcn.004013b3
cmp dword [esp + 0x30c], 8
mov edi, eax
mov eax, dword [esp + 0x2f8]
jae 0x40310c
lea eax, [esp + 0x2f8]
push dword [esp + 0x308]
lea ecx, [esp + 0x28c]
push eax
xor eax, eax
call fcn.004013b3
cmp edi, 0xffffffff
je 0x4033f6
cmp eax, 0xffffffff
je 0x4033f6
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 + 0x290]
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.00404bfd
xor eax, eax
mov dword [esp + 0x1d4], esi
mov dword [esp + 0x1d0], ebx
mov word [esp + 0x1c0], ax
jmp 0x403381
push 1
push str.:eu___
xor eax, eax
call fcn.004013b3
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403365
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 + 0x234], ax
mov eax, dword [esp + 0x14]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1c8]
lea edi, [esp + 0x23c]
mov dword [esp + 0x250], esi
mov dword [esp + 0x24c], ebx
call fcn.00401517
push 0x422884
lea ecx, [esp + 0x1e4]
call fcn.0040657a
test eax, eax
jne 0x403243
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x370]
call fcn.00401517
push 0x422888
lea ecx, [esp + 0x1e4]
call fcn.0040657a
test eax, eax
jne 0x40326e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x23c]
lea edi, [esp + 0x354]
call fcn.00401517
push 0x42288c
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
call fcn.004043ef
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.00406547
push 0x422894
lea eax, [esp + 0x318]
push eax
call fcn.004043c4
push ebx
lea eax, [esp + 0x1c4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x31c]
call fcn.00405604
push 0x422890
mov eax, edi
push eax
call fcn.004043c4
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.00405604
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 + 0x23c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x1e8]
call fcn.00401451
push 7
pop esi
jmp 0x403381
push 0x422898
lea ecx, [esp + 0x1c4]
call fcn.0040657a
test eax, eax
jne 0x403381
mov byte [0x47698e], 1
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.004066a1
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 0x40319f
push ebx
push 1
call fcn.00401451
lea ecx, [esp + 0x140]
call fcn.00404c7b
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b18d
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.004044f7
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0040b18d
pop ecx
push ebx
push esi
lea ecx, [esp + 0x190]
call fcn.0040550e
push ebx
push esi
lea ecx, [esp + 0x290]
call fcn.00401451
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esp + 0x20c], 0
jne 0x4034ef
push 0x4228ac
push 0x16
push 0x4268a0
call fcn.004021bc
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.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0x2f
push str.___xUVu_a
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov eax, esi
call fcn.004024b1
push 0x2f
push str.___xUVu_a
call fcn.004021bc
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ecx, esi
call fcn.00402325
cmp dword [esp + 0x210], 8
mov eax, dword [esp + 0x1fc]
jae 0x403507
lea eax, [esp + 0x1fc]
push eax
push 2
push 0x4265cc
call fcn.004021bc
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.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [0x47698e], 0
jne 0x40379f
cmp byte [0x47698d], 0
jne 0x40379f
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x338]
call fcn.004010a7
xor edi, edi
cmp dword [esp + 0x1b4], edi
jbe 0x403595
lea ecx, [esp + 0x1a4]
jmp 0x4034ea
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
push 0x19
push str.V_r
mov dword [esp + 0x2c], edi
call fcn.004021bc
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4035e0
push 0x32
push 0x426b70
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034ea
push 0x12
xor eax, eax
push 0x426c14
mov dword [esp + 0x1fc], 7
mov dword [esp + 0x1f8], edi
mov word [esp + 0x1e8], ax
call fcn.004021bc
push eax
lea esi, [esp + 0x238]
call fcn.004012da
push 0x20
push 0x426c38
call fcn.004021bc
push eax
lea esi, [esp + 0x2c4]
call fcn.004012da
mov eax, esi
push eax
lea edx, [esp + 0x1e4]
lea ecx, [esp + 0x238]
call fcn.0040684c
push edi
push 1
lea ecx, [esp + 0x2c8]
mov esi, eax
call fcn.00401451
push edi
push 1
lea ecx, [esp + 0x23c]
call fcn.00401451
cmp esi, edi
jne 0x40374b
push 6
push 0x426c78
call fcn.004021bc
push eax
lea esi, [esp + 0x1c4]
call fcn.004012da
cmp dword [esp + 0x1d4], 8
mov esi, dword [esp + 0x1c0]
mov edi, esi
jae 0x403732
lea edi, [esp + 0x1c0]
mov eax, edi
cmp dword [esp + 0x1d4], 8
mov ecx, dword [esp + 0x1d0]
lea ebx, [eax + ecx*2]
jae 0x4036c0
lea esi, [esp + 0x1c0]
cmp esi, ebx
je 0x4036db
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d0bd
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4036c6
cmp dword [esp + 0x1d4], 8
mov eax, dword [esp + 0x1c0]
jae 0x4036f3
lea eax, [esp + 0x1c0]
mov edi, dword [esp + 0x1d0]
push eax
mov eax, dword [esp + 0x1f4]
lea ecx, [esp + 0x1e4]
call fcn.004065a7
test eax, eax
jne 0x403739
push 0x32
push 0x426b70
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034ea
mov eax, esi
jmp 0x4036a5
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
push edi
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
cmp byte [0x47698d], 0
jne 0x40379f
mov ebx, dword [esp + 0x24]
call fcn.0040725b
test al, al
jne 0x40379f
push 0x32
push 0x426b70
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034ea
push 0x4228b0
lea esi, [esp + 0x254]
call fcn.004012da
lea eax, [esp + 0xbd8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4037f9
lea eax, [esp + 0xbd8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov esi, eax
lea edi, [esp + 0x250]
call fcn.00401364
push 0
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
lea edx, [esp + 0x250]
lea ecx, [esp + 0x1a4]
call fcn.00407682
mov esi, eax
lea edi, [esp + 0x250]
call fcn.00401364
push 0
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
cmp dword [esp + 0x264], 8
mov esi, dword [esp + 0x250]
jae 0x40383d
mov esi, edi
push 0x10
push 0x4274e4
call fcn.00401860
push eax
push 8
push 0x4271ac
call fcn.00401814
push eax
call fcn.004018a6
push 0
push esi
call eax
test eax, eax
jne 0x4038b0
push 0x17
push 0x426950
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0x25
push 0x426980
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov eax, esi
jmp 0x4034ca
lea edx, [esp + 0x250]
lea ecx, [esp + 0x218]
call fcn.00407944
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x4038db
lea eax, [esp + 0x218]
push eax
push 0x11
push 0x4268cc
call fcn.004021bc
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.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [esp + 0x1f], 0
je 0x40396f
mov eax, 0x31a52
push eax
mov dword [esp + 0x1c], eax
call fcn.0040af82
xor esi, esi
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x475368]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
push ebx
push dword [esi + 0x4753c0]
push eax
call fcn.0040e770
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x54
jl 0x403943
jmp 0x4039b3
mov eax, 0x1c319
push eax
mov dword [esp + 0x1c], eax
call fcn.0040af82
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 + 0x426e04]
push eax
call fcn.0040e770
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x2c
jl 0x403989
lea esi, [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.004024de
test al, al
jne 0x4039e4
push 0x2f
push str.___xUVu_a
call fcn.004021bc
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x4034ea
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x4039fc
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 0x403aa8
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x403a37
lea eax, [esp + 0x218]
push eax
push 0x17
push 0x4269cc
call fcn.004021bc
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.00402254
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 + 0x258]
call fcn.00401451
xor edi, edi
push 0xd
inc edi
jmp 0x402e09
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 0x403ac8
mov edi, esi
call fcn.004023bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040d652
cmp dword [esp + 0x230], 8
mov eax, dword [esp + 0x21c]
pop ecx
jae 0x403af1
lea eax, [esp + 0x218]
push eax
push 0x14
push 0x4269fc
call fcn.004021bc
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.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
push 8
push 0x426a24
call fcn.004021bc
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403b43
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x200]
call fcn.00405847
cmp byte [0x47698d], 0
mov ebx, 0x4265c8
je 0x403c2b
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x18c]
call fcn.0040439c
push 3
push 0x4267dc
call fcn.004021bc
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
push 0x4228b4
mov eax, esi
push eax
call fcn.004043c4
push 1
push ebx
call fcn.004021bc
push eax
mov eax, esi
push eax
call fcn.004043c4
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x190]
call fcn.00405739
push 7
push 0x4265d8
call fcn.004021bc
push eax
mov eax, edi
push eax
call fcn.004043c4
push 1
push ebx
call fcn.004021bc
push eax
mov eax, edi
push eax
call fcn.004043c4
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.00405604
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.004021bc
push eax
lea esi, [esp + 0x3a4]
call fcn.004012da
push 0x4228b8
mov eax, esi
push eax
call fcn.004043c4
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.00405604
push 1
push ebx
call fcn.004021bc
push eax
mov eax, edi
push eax
call fcn.004043c4
push dword [esp + 0x28]
lea eax, [esp + 0x18c]
call fcn.0040439c
push 0
lea eax, [esp + 0x18c]
push eax
or eax, 0xffffffff
call fcn.00405604
push 0
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 1
push ebx
call fcn.004021bc
push eax
mov eax, edi
push eax
call fcn.004043c4
mov eax, edi
push eax
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x254]
call fcn.004026a4
test al, al
je 0x403d26
push 0x4228bc
push 0x17
push 0x426a34
call fcn.004021bc
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.00402254
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x190]
call fcn.00401451
jmp 0x403d74
push 0x4228c0
push 0x10
push 0x426a64
call fcn.004021bc
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.00402254
push 0
push 1
mov ecx, esi
call fcn.00401451
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x47698d], bl
je 0x403dd4
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
jae 0x403d94
lea eax, [esp + 0x250]
push eax
push 0x2d
push 0x426ab0
call fcn.004021bc
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.004021bc
push eax
lea eax, [esp + 0x3e0]
push eax
call fcn.004018cd
jmp 0x403e33
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x250]
push eax
call fcn.0040776a
push 0x4228c4
push 0x16
push 0x426a84
call fcn.004021bc
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.00402254
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 + 0x258]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x3c4]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x274]
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.0040550e
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.0040bb88
mov esp, ebp
pop ebp
ret 0x10