Function at 0x10066470
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa347
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10066919
cmp word [ebx], 0
je 0x10066919
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x100664c6
mov eax, 0x80070057
jmp 0x1006691e
mov eax, dword [esi]
push esi
mov dword [ebp - 0x238], esi
call dword [eax + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
mov eax, dword [esi]
push ecx
push 0x100d614c
push esi
call dword [eax]
mov esi, eax
test esi, esi
js 0x100668f1
cmp esi, 1
je 0x100668f1
cmp dword [ebp - 0x220], 0
jne 0x1006651e
mov esi, 0x80004005
jmp 0x100668f1
mov eax, dword [edi + 0x4c]
cmp eax, 0xffffffff
je 0x1006652d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x354]
test eax, eax
je 0x1006654a
push eax
call fcn.1007bfd8
add esp, 4
mov dword [edi + 0x354], 0
cmp dword [edi + 0x14], 0
mov ecx, connect
push 0
push 0x20000000
push 3
push 0
push 1
mov eax, 0xc0000000
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x100665e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
je 0x100665b2
cmp esi, 0x20
je 0x100665b2
cmp esi, 0xa7
je 0x100665b2
cmp esi, 0x21
je 0x100665b2
cmp esi, 0x13
je 0x100665b2
test esi, esi
jle 0x100668f1
movzx esi, si
or esi, 0x80070000
jmp 0x100668f1
push 0
push 0
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x100665dc
call fcn.10015440
mov esi, eax
jmp 0x100668f1
mov dword [edi + 0x14], 1
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x23c]
xorps xmm0, xmm0
lea ecx, [edi + 8]
movlpd qword [ebp - 0x218], xmm0
push eax
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x218]
push eax
push 1
push dword [edi + 0x4c]
call fcn.10014e30
mov esi, eax
test esi, esi
js 0x100668f1
cmp esi, 1
je 0x100668f1
cmp dword [ebp - 0x210], 0x5120372
je 0x10066654
mov esi, 0xe00e1001
jmp 0x100668f1
lea eax, [ebp - 0x228]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10066674
call fcn.10015440
mov esi, eax
jmp 0x100668f1
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x228]
push 0
push 0x200
push esi
push ebx
call fcn.100a8300
or eax, edx
je 0x1006669c
mov esi, 0xe0037001
jmp 0x100668f1
push 0
push 0x200
push esi
push ebx
call fcn.100a8250
mov dword [ebp - 0x228], eax
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x224], edx
mov dword [edi + 0x60], 0
test eax, eax
jne 0x10066709
mov ecx, dword [ebp - 0x200]
mov edx, 0x200
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x1f4]
mul edx
mov dword [edi + 0x5c], ecx
push ecx
mov ecx, edi
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
call fcn.10067dd0
mov esi, eax
test esi, esi
js 0x100668f1
cmp esi, 1
jne 0x10066839
jmp 0x100668f1
cmp eax, 1
jne 0x10066766
lea eax, [ebp - 0x210]
push eax
call fcn.10067c10
cmp dword [ebp - 0x1f8], eax
je 0x1006672c
mov esi, 0xe0037001
jmp 0x100668f1
mov eax, dword [ebp - 0x200]
mov ecx, 0x200
mov dword [edi + 0x348], eax
shr eax, 9
mov dword [edi + 0x34c], eax
mov eax, dword [ebp - 0x1fc]
mov dword [edi + 0x350], eax
mov eax, dword [ebp - 0x1f4]
mov dword [edi + 0x50], 1
mul ecx
jmp 0x10066807
cmp eax, 2
jne 0x100668ec
mov esi, dword [ebp - 0x204]
lea ecx, [ebp - 0x210]
mov ebx, 0x200
mov dword [ebp - 0x204], 0
mov edx, ebx
call fcn.10069570
cmp esi, eax
je 0x1006679f
mov esi, 0xe0037001
jmp 0x100668f1
test byte [ebp - 0x208], 1
mov dword [edi + 0x50], 2
je 0x100667de
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
mov dword [edi + 0x60], 1
push eax
mov ecx, edi
call fcn.10066e30
mov esi, eax
test esi, esi
js 0x100668f1
cmp esi, 1
jne 0x10066827
jmp 0x100668f1
mov eax, dword [ebp - 0x200]
mov dword [edi + 0x348], eax
shr eax, 9
mov dword [edi + 0x34c], eax
mov eax, dword [ebp - 0x1fc]
mov dword [edi + 0x350], eax
mov eax, dword [ebp - 0x1f4]
mul ebx
mov ecx, edi
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
call fcn.10067af0
mov esi, eax
test esi, esi
js 0x100668f1
cmp esi, 1
je 0x100668f1
mov ecx, edi
call fcn.10066940
test eax, eax
jne 0x10066839
mov dword [edi + 0x14], 1
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0x11
xorps xmm0, xmm0
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
shrd ecx, eax, 9
mov dword [ebp - 0x214], 0
shr eax, 9
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x214], ecx
movq qword [ebp - 0x21c], xmm0
mov ecx, edi
push eax
mov dword [ebp - 0x218], 0
call fcn.10067c70
mov esi, eax
test esi, esi
js 0x100668db
cmp esi, 1
je 0x100668db
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.1001ec10
push 1
push dword [ebp - 0x220]
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
call fcn.10014a50
mov esi, eax
test esi, esi
jne 0x100668db
mov dword [edi + 0x18], 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.10060730
jmp 0x100668f1
mov esi, 0xe0037000
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10066905
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
jmp 0x1006691e
mov eax, 0xe00e1001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8