Function at 0x4039f1
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8134
call fcn.0041b720
mov eax, dword [0x4265d4]
xor eax, esp
mov dword [esp + 0x8130], 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 + 0x1c8], cx
mov word [esp + 0x388], cx
mov word [esp + 0x36c], cx
push eax
lea ecx, [esp + 0x2c8]
mov dword [esp + 0x1e0], esi
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x3a0], esi
mov dword [esp + 0x39c], ebx
mov dword [esp + 0x384], esi
mov dword [esp + 0x380], ebx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x2dc], 0xf
mov dword [esp + 0x2d8], ebx
mov byte [esp + 0x2c8], bl
call fcn.00402253
cmp dword [esp + 0x2d8], 0x10
mov ecx, dword [esp + 0x2c4]
mov eax, ecx
jae 0x403aa2
lea eax, [esp + 0x2c4]
add eax, dword [esp + 0x2d4]
cmp dword [esp + 0x2d8], 0x10
jae 0x403aba
lea ecx, [esp + 0x2c4]
push dword [esp + 0x28]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x2b4]
push eax
mov dword [esp + 0x2cc], esi
mov dword [esp + 0x2c8], ebx
mov word [esp + 0x2b8], dx
call fcn.0040292e
lea esi, [esp + 0x2a8]
lea edi, [esp + 0x1c8]
call fcn.00401d32
push ebx
push 1
mov ecx, esi
call fcn.004013ba
push 5
push 0x4277e0
call fcn.004032d6
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x403b13
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1d0]
call fcn.0040131c
mov esi, eax
cmp esi, 0xffffffff
setne al
mov byte [0x477911], al
cmp al, bl
je 0x403bd0
lea ecx, [esp + 0x18c]
call fcn.00403543
mov ebx, eax
call fcn.0040336e
push 0
push 1
lea ecx, [esp + 0x194]
call fcn.004013ba
push 0x423870
push 5
push esi
lea eax, [esp + 0x1d4]
push eax
call fcn.004054fd
push 0x40000
push 3
push 0x4276a8
call fcn.004032d6
push eax
push 7
push 0x4277ac
call fcn.004032d6
push eax
call fcn.00401e32
push 0x11
push 0x4277bc
call fcn.004032d6
push eax
lea esi, [esp + 0x204]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor ebx, ebx
push 0xd8
call fcn.0040cc83
pop ecx
cmp eax, ebx
je 0x403bec
call fcn.004072d5
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x403bf0
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x3dc]
call fcn.004079c1
lea eax, [ebx + 0xbc]
push eax
lea eax, [esp + 0x354]
call fcn.0040222b
lea eax, [ebx + 0xa0]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x274]
call fcn.0040222b
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x204]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
cmp dword [esp + 0x364], 8
mov eax, dword [esp + 0x350]
jae 0x403c64
lea eax, [esp + 0x350]
push eax
push 0x10
push 0x427830
call fcn.004032d6
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x204]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
cmp byte [0x477911], 0
mov byte [esp + 0x13], 1
je 0x403d27
cmp dword [esp + 0x1d8], 0
jbe 0x403d9f
cmp dword [esp + 0x1dc], 8
mov eax, dword [esp + 0x1c8]
mov byte [esp + 0x13], 0
jae 0x403ce4
lea eax, [esp + 0x1c8]
push eax
push 0x20
push 0x427850
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x204]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
jmp 0x403d9f
push 2
pop esi
push esi
push 0x4277ec
call fcn.004032d6
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x403d3a
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1d0]
call fcn.0040131c
push esi
push 0x4277f0
mov dword [esp + 0x1c], eax
call fcn.004032d6
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x403d6c
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1d0]
call fcn.0040131c
cmp dword [esp + 0x14], 0xffffffff
je 0x403d9a
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x403d9f
mov byte [esp + 0x13], 1
push 1
call fcn.0040cc83
pop ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3a4]
call fcn.00401c2b
cmp dword [esp + 0x3b4], 0
jbe 0x403dc6
mov byte [esp + 0x1b], 1
cmp byte [esp + 0x13], 0
je 0x4045a2
cmp dword [esp + 0x284], 8
mov eax, dword [esp + 0x270]
jae 0x403de9
lea eax, [esp + 0x270]
push eax
push 0x13
push 0x427890
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x220]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.004013ba
push 0x423874
lea esi, [esp + 0x2ac]
call fcn.00401249
push ebx
push 0x422002
lea ecx, [esp + 0x208]
mov dword [esp + 0x21c], 0xf
mov dword [esp + 0x218], ebx
mov byte [esp + 0x208], bl
call fcn.00402274
cmp dword [esp + 0x284], 8
mov eax, dword [esp + 0x270]
jae 0x403e7f
lea eax, [esp + 0x270]
push 0x80
push 3
push 3
push 0x80000000
push eax
call fcn.00401e65
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x403f97
cmp dword [esp + 0x284], 8
mov eax, dword [esp + 0x270]
jae 0x403eb7
lea eax, [esp + 0x270]
push eax
push 0x17
push 0x4279e4
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x220]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.004013ba
push esi
call fcn.00401ea0
push esi
push edi
lea ecx, [esp + 0x208]
call fcn.004012d8
push esi
push edi
lea ecx, [esp + 0x2b0]
call fcn.004013ba
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x3ac]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x278]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x358]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x3e4]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x2cc]
call fcn.004012d8
push esi
push edi
lea ecx, [esp + 0x374]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x390]
call fcn.004013ba
push esi
push edi
lea ecx, [esp + 0x1d0]
call fcn.004013ba
mov eax, ebx
jmp 0x405028
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x14]
mov esi, eax
call fcn.00401ea0
lea eax, [esp + 0x270]
push eax
lea edi, [esp + 0x34]
call fcn.0040552d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x3c], ebx
jne 0x404615
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 0x403fee
push ebx
call fcn.004031f5
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.00405157
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x3c], 6
jne 0x40403a
mov eax, dword [esp + eax + 0x68]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x1b8]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xe00]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040507d
xor eax, eax
mov word [esp + 0x1e4], ax
mov eax, 0x3999
lea ecx, [esp + 0xe00]
lea edx, [esp + 0x1e4]
mov dword [esp + 0x1f8], 7
mov dword [esp + 0x1f4], ebx
call fcn.0040149b
push ebx
lea eax, [esp + 0x1e8]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2b0]
call fcn.004065de
lea eax, [esp + 0x48]
call fcn.00406ac0
test eax, eax
jne 0x4040cf
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 0x4040be
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4040cf
push ebx
call fcn.004031f5
push ebx
push 1
lea ecx, [esp + 0x1ec]
call fcn.004013ba
push 0x423878
lea esi, [esp + 0x300]
call fcn.00401249
push 0x42387c
lea esi, [esp + 0x338]
call fcn.00401249
xor esi, esi
mov dword [esp + 0x14], 8
push 7
pop edi
push dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x290], ax
lea eax, [esi + 0x4281e6]
push eax
dec eax
push eax
lea eax, [esp + 0x298]
push eax
mov dword [esp + 0x2b0], edi
mov dword [esp + 0x2ac], ebx
call fcn.00406f7f
push dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x1e8], ax
lea eax, [esi + 0x4284de]
push eax
lea eax, [esi + 0x4284dd]
push eax
lea eax, [esp + 0x1f0]
push eax
mov dword [esp + 0x208], edi
mov dword [esp + 0x204], ebx
call fcn.00406f7f
push ebx
lea eax, [esp + 0x290]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x304]
call fcn.004065de
push ebx
lea eax, [esp + 0x1e8]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x33c]
call fcn.004065de
push ebx
push 1
lea ecx, [esp + 0x1ec]
call fcn.004013ba
push ebx
push 1
lea ecx, [esp + 0x294]
call fcn.004013ba
add esi, 2
dec dword [esp + 0x14]
jne 0x40410a
cmp dword [esp + 0x310], 8
mov eax, dword [esp + 0x2fc]
jae 0x4041e9
lea eax, [esp + 0x2fc]
push dword [esp + 0x30c]
lea ecx, [esp + 0x2ac]
push eax
xor eax, eax
call fcn.0040131c
cmp dword [esp + 0x348], 8
mov edi, eax
mov eax, dword [esp + 0x334]
jae 0x404219
lea eax, [esp + 0x334]
push dword [esp + 0x344]
lea ecx, [esp + 0x2ac]
push eax
xor eax, eax
call fcn.0040131c
cmp edi, 0xffffffff
je 0x40453c
cmp eax, 0xffffffff
je 0x40453c
sub eax, dword [esp + 0x30c]
push 7
sub eax, edi
pop esi
push eax
mov eax, dword [esp + 0x348]
add eax, edi
xor ecx, ecx
push eax
lea eax, [esp + 0x2b0]
lea edi, [esp + 0x224]
mov dword [esp + 0x238], esi
mov dword [esp + 0x234], ebx
mov word [esp + 0x224], cx
call fcn.004016a0
sub esp, 0x1c
mov ecx, edi
mov eax, esp
push ecx
call fcn.0040222b
lea eax, [esp + 0x1a8]
push eax
call fcn.0040213a
lea eax, [esp + 0x18c]
push eax
lea edi, [esp + 0xec]
call fcn.00405d0b
xor eax, eax
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x1b8], ebx
mov word [esp + 0x1a8], ax
jmp 0x4044b8
push 1
push str.:eu___
xor eax, eax
call fcn.0040131c
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x404494
push dword [esp + 0x1c]
xor eax, eax
mov word [esp + 0x1e8], ax
push ebx
lea eax, [esp + 0x1b0]
lea edi, [esp + 0x1ec]
mov dword [esp + 0x200], esi
mov dword [esp + 0x1fc], ebx
call fcn.004016a0
xor eax, eax
mov word [esp + 0x28c], ax
mov eax, dword [esp + 0x1c]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1b0]
lea edi, [esp + 0x294]
mov dword [esp + 0x2a8], esi
mov dword [esp + 0x2a4], ebx
call fcn.004016a0
push 0x423884
lea ecx, [esp + 0x1e8]
call fcn.00406f0e
test eax, eax
jne 0x404372
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x374]
call fcn.004016a0
push 0x423888
lea ecx, [esp + 0x1e8]
call fcn.00406f0e
test eax, eax
jne 0x40439d
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x294]
lea edi, [esp + 0x390]
call fcn.004016a0
push 0x42388c
push 1
push dword [esp + 0x24]
lea eax, [esp + 0x1b4]
push eax
call fcn.004054fd
xor eax, eax
mov word [esp + 0x318], ax
mov eax, dword [esp + 0x1b8]
push 7
pop esi
inc eax
lea ecx, [esp + 0x318]
mov dword [esp + 0x32c], esi
mov dword [esp + 0x328], ebx
call fcn.004029e7
push 0x423894
lea eax, [esp + 0x31c]
push eax
call fcn.004054d2
push ebx
lea eax, [esp + 0x1ac]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x320]
call fcn.004065de
push 0x423890
mov eax, edi
push eax
call fcn.004054d2
mov dword [esp + 0x2f4], esi
xor ecx, ecx
mov esi, eax
lea edi, [esp + 0x2e0]
mov dword [esp + 0x2f0], ebx
mov word [esp + 0x2e0], cx
call fcn.00401d32
mov eax, edi
push ebx
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1d0]
call fcn.004065de
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x2e8]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x320]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x294]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x1ec]
call fcn.004013ba
push 7
pop esi
jmp 0x4044b8
push 8
push 0x427c9c
call fcn.004032d6
push eax
lea ecx, [esp + 0x1ac]
call fcn.00406f0e
test eax, eax
jne 0x4044b8
mov byte [0x477912], 1
lea eax, [esp + 0x1a8]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.00406fda
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 + 0x1a8]
jne 0x4042ce
push ebx
push 1
call fcn.004013ba
lea ecx, [esp + 0x140]
call fcn.00405d89
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040ba72
pop ecx
push ebx
push 1
lea ecx, [esp + 0x194]
call fcn.004013ba
push ebx
push 1
lea ecx, [esp + 0x224]
call fcn.004013ba
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x33c]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x304]
call fcn.004013ba
lea ecx, [esp + 0xa0]
call fcn.00405605
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0040ba72
pop ecx
push ebx
push esi
lea ecx, [esp + 0x208]
call fcn.004012d8
push ebx
push esi
lea ecx, [esp + 0x2b0]
call fcn.004013ba
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esp + 0x1d8], 0
jne 0x404635
push 0x423898
push 0x16
push 0x4278b8
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
push 0x2f
push 0x427908
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov eax, esi
call fcn.004035cb
push 0x2f
push 0x427908
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ecx, esi
call fcn.0040343f
cmp dword [esp + 0x1dc], 8
mov eax, dword [esp + 0x1c8]
jae 0x40464d
lea eax, [esp + 0x1c8]
push eax
push 2
push 0x4275e4
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
xor edi, edi
push edi
push 1
mov ecx, esi
call fcn.004013ba
cmp byte [0x477912], 0
jne 0x4048e4
cmp byte [0x477911], 0
jne 0x4048e4
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x358]
call fcn.00401aad
cmp dword [esp + 0x22c], edi
jbe 0x4046da
lea ecx, [esp + 0x21c]
jmp 0x404630
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push 0x19
push 0x427bf8
mov dword [esp + 0x28], edi
call fcn.004032d6
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404725
push 0x32
push 0x427b88
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ecx, esi
jmp 0x404630
push 0x12
xor eax, eax
push 0x427c2c
mov dword [esp + 0x200], 7
mov dword [esp + 0x1fc], edi
mov word [esp + 0x1ec], ax
call fcn.004032d6
push eax
lea esi, [esp + 0x2e4]
call fcn.00401249
push 0x20
push 0x427c50
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov eax, esi
push eax
lea edx, [esp + 0x1e8]
lea ecx, [esp + 0x2e4]
call fcn.00407127
push edi
push 1
lea ecx, [esp + 0x194]
mov esi, eax
call fcn.004013ba
push edi
push 1
lea ecx, [esp + 0x2e8]
call fcn.004013ba
cmp esi, edi
jne 0x404890
push 6
push 0x427c90
call fcn.004032d6
push eax
lea esi, [esp + 0x1ac]
call fcn.00401249
cmp dword [esp + 0x1bc], 8
mov esi, dword [esp + 0x1a8]
mov edi, esi
jae 0x404877
lea edi, [esp + 0x1a8]
mov eax, edi
cmp dword [esp + 0x1bc], 8
mov ecx, dword [esp + 0x1b8]
lea ebx, [eax + ecx*2]
jae 0x404805
lea esi, [esp + 0x1a8]
cmp esi, ebx
je 0x404820
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040db6d
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x40480b
cmp dword [esp + 0x1bc], 8
mov eax, dword [esp + 0x1a8]
jae 0x404838
lea eax, [esp + 0x1a8]
mov edi, dword [esp + 0x1b8]
push eax
mov eax, dword [esp + 0x1f8]
lea ecx, [esp + 0x1e8]
call fcn.00406f3b
test eax, eax
jne 0x40487e
push 0x32
push 0x427b88
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ecx, esi
jmp 0x404630
mov eax, esi
jmp 0x4047ea
push 0
push 1
lea ecx, [esp + 0x1b0]
call fcn.004013ba
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x1ec]
call fcn.004013ba
push edi
push 1
lea ecx, [esp + 0x224]
call fcn.004013ba
cmp byte [0x477911], 0
jne 0x4048e4
mov ebx, dword [esp + 0x24]
call fcn.00407b36
test al, al
jne 0x4048e4
push 0x32
push 0x427b88
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ecx, esi
jmp 0x404630
push 0x42389c
lea esi, [esp + 0x258]
call fcn.00401249
push 0xc
push 0x42fc4c
call fcn.00401dc5
push eax
push 8
mov ebx, 0x42fc3c
push ebx
call fcn.00401d79
push eax
call fcn.00401e0b
lea ecx, [esp + 0xbf8]
push ecx
push 0x104
call eax
test eax, eax
je 0x40495a
lea eax, [esp + 0xbf8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov esi, eax
lea edi, [esp + 0x254]
call fcn.00401d32
push 0
push 1
lea ecx, [esp + 0x194]
call fcn.004013ba
lea edx, [esp + 0x254]
lea ecx, [esp + 0x18c]
call fcn.00407f5d
mov esi, eax
lea edi, [esp + 0x254]
call fcn.00401d32
push 0
push 1
lea ecx, [esp + 0x194]
call fcn.004013ba
cmp dword [esp + 0x268], 8
mov esi, dword [esp + 0x254]
jae 0x40499e
mov esi, edi
push 0x10
push 0x43679c
call fcn.00401dc5
push eax
push 8
push ebx
call fcn.00401d79
push eax
call fcn.00401e0b
push 0
push esi
call eax
test eax, eax
jne 0x404a0d
push 0x17
push 0x427968
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
push 0x25
push 0x427998
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov eax, esi
jmp 0x404610
lea edx, [esp + 0x254]
lea ecx, [esp + 0x238]
call fcn.0040823d
cmp dword [esp + 0x24c], 8
mov eax, dword [esp + 0x238]
jae 0x404a38
lea eax, [esp + 0x238]
push eax
push 0x11
push 0x4278e4
call fcn.004032d6
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
cmp byte [esp + 0x1b], 0
je 0x404acc
mov eax, 0x31a52
push eax
mov dword [esp + 0x18], eax
call fcn.0040b867
xor esi, esi
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x427e1c]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x1c]
push ebx
push dword [esi + 0x427f4c]
push eax
call fcn.0040f220
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x34
jl 0x404aa0
jmp 0x404b10
mov eax, 0x1c306
push eax
mov dword [esp + 0x18], eax
call fcn.0040b867
xor esi, esi
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x427d94]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x1c]
push ebx
push dword [esi + 0x427ebc]
push eax
call fcn.0040f220
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x1c
jl 0x404ae6
lea esi, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.004035f8
test al, al
jne 0x404b41
push 0x2f
push 0x427908
call fcn.004032d6
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ecx, esi
jmp 0x404630
cmp dword [esp + 0x24c], 8
mov eax, dword [esp + 0x238]
jae 0x404b59
lea eax, [esp + 0x238]
push 0x100
push 2
push 1
push 0x40000000
push eax
call fcn.00401e65
mov esi, eax
test esi, esi
jne 0x404c00
cmp dword [esp + 0x24c], 8
mov eax, dword [esp + 0x238]
jae 0x404b8f
lea eax, [esp + 0x238]
push eax
push 0x17
push 0x4279e4
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.004013ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [esp + 0x240]
call fcn.004013ba
push esi
push 1
lea ecx, [esp + 0x25c]
call fcn.004013ba
xor edi, edi
push 0xd
inc edi
jmp 0x403f1f
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404c21
mov edi, esi
call fcn.004034d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call fcn.0040e102
cmp dword [esp + 0x250], 8
mov eax, dword [esp + 0x23c]
pop ecx
jae 0x404c4a
lea eax, [esp + 0x238]
push eax
push 0x14
push 0x427a14
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
push 8
push 0x427a3c
call fcn.004032d6
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x404c9c
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x1cc]
call fcn.00406821
cmp byte [0x477911], 0
mov ebx, 0x4275e0
je 0x404d84
lea eax, [esp + 0x3dc]
push eax
lea eax, [esp + 0x204]
call fcn.0040222b
push 3
push 0x4277f4
call fcn.004032d6
push eax
lea esi, [esp + 0x220]
call fcn.00401249
push 0x4238a0
mov eax, esi
push eax
call fcn.004054d2
push 1
push ebx
call fcn.004032d6
push eax
mov eax, esi
push eax
call fcn.004054d2
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x208]
call fcn.00406713
push 7
push 0x4275f0
call fcn.004032d6
push eax
mov eax, edi
push eax
call fcn.004054d2
push 1
push ebx
call fcn.004032d6
push eax
mov eax, edi
push eax
call fcn.004054d2
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1d0]
call fcn.004065de
push esi
push 1
lea ecx, [esp + 0x224]
call fcn.004013ba
push esi
push 1
lea ecx, [esp + 0x208]
call fcn.004013ba
push 3
push 0x4277fc
call fcn.004032d6
push eax
lea esi, [esp + 0x3c4]
call fcn.00401249
push 0x4238a4
mov eax, esi
push eax
call fcn.004054d2
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1d0]
call fcn.004065de
push 1
push ebx
call fcn.004032d6
push eax
mov eax, edi
push eax
call fcn.004054d2
push dword [esp + 0x28]
lea eax, [esp + 0x190]
call fcn.0040222b
push 0
lea eax, [esp + 0x190]
push eax
or eax, 0xffffffff
call fcn.004065de
push 0
push 1
lea ecx, [esp + 0x194]
call fcn.004013ba
push 1
push ebx
call fcn.004032d6
push eax
mov eax, edi
push eax
call fcn.004054d2
mov eax, edi
push eax
lea edx, [esp + 0x23c]
lea ecx, [esp + 0x258]
call fcn.004037be
test al, al
je 0x404e7f
push 0x4238a8
push 0x17
push 0x427a4c
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x194]
call fcn.004013ba
jmp 0x404ecd
push 0x4238ac
push 0x10
push 0x427a7c
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x477911], bl
je 0x404f2d
cmp dword [esp + 0x268], 8
mov eax, dword [esp + 0x254]
jae 0x404eed
lea eax, [esp + 0x254]
push eax
push 0x2d
push 0x427ac8
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x4276a8
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call fcn.00401e32
jmp 0x404f8c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x254]
push eax
call fcn.00408045
push 0x4238b0
push 0x16
push 0x427a9c
call fcn.004032d6
push eax
lea eax, [esp + 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f8]
push eax
lea esi, [esp + 0x190]
call fcn.00401249
mov ebx, esi
call fcn.0040336e
push 0
push 1
mov ecx, esi
call fcn.004013ba
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x3c8]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x240]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x25c]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x3ac]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x278]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x358]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x3e4]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x2cc]
call fcn.004012d8
push ebx
push esi
lea ecx, [esp + 0x374]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x390]
call fcn.004013ba
push ebx
push esi
lea ecx, [esp + 0x1d0]
call fcn.004013ba
xor eax, eax
mov ecx, dword [esp + 0x813c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c46d
mov esp, ebp
pop ebp
ret 0x10