Function at 0x100630e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa1c2
mov eax, dword fs:[0]
push eax
sub esp, 0x240
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 esi, ecx
mov dword [ebp - 0x234], esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebx], ax
jne 0x10063159
xor ecx, ecx
jmp 0x1006316f
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10063160
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x228]
call fcn.10017370
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x54]
call fcn.10054150
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x100631b1
inc eax
push eax
push dword [ebp - 0x228]
call fcn.10017a90
xor eax, eax
mov dword [ebp - 0x214], 7
push eax
push eax
push 3
push eax
push 1
push 0xc0000000
push ebx
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x1006326b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
je 0x1006322f
cmp edi, 0x20
je 0x1006322f
cmp edi, 0xa7
je 0x1006322f
cmp edi, 0x21
je 0x1006322f
cmp edi, 0x13
je 0x1006322f
test edi, edi
jle 0x1006351c
movzx edi, di
or edi, 0x80070000
jmp 0x1006351c
push 0
push 0
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x22c], esi
cmp esi, 0xffffffff
jne 0x1006325e
call fcn.10015440
mov edi, eax
jmp 0x1006351c
mov eax, dword [ebp - 0x234]
mov dword [eax + 0x14], 1
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10063289
call fcn.10015440
mov edi, eax
jmp 0x1006351c
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push 0
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100632d5
call fcn.10015440
mov edi, eax
jmp 0x1006351c
lea ecx, [ebp - 0x210]
mov edx, str._Disk_DescriptorFile
mov edi, 0x11
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100633e9
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100632e5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100633e9
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x240]
jl 0x10063326
jg 0x1006331c
cmp eax, 0x100000
jb 0x10063326
mov edi, 0x80004005
jmp 0x1006351c
inc eax
push 0x100dd790
push eax
call fcn.1007bfcf
mov ebx, eax
add esp, 8
mov dword [ebp - 0x238], ebx
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x1006334c
mov edi, 0x8007000e
jmp 0x100633c5
mov eax, dword [ebp - 0x240]
inc eax
push eax
push 0
push ebx
call fcn.1008b230
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x24c], xmm0
push 0
push 0
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1006338c
call fcn.10015440
jmp 0x100633c3
push 0
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x240]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
call eax
test eax, eax
jne 0x100633af
call fcn.10015440
jmp 0x100633c3
mov ecx, dword [ebp - 0x234]
push 0
push dword [ebp - 0x244]
push ebx
call fcn.10063560
mov edi, eax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x100633e0
push ebx
call fcn.1007bfd8
add esp, 4
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 1
jmp 0x1006351c
mov eax, dword [ebp - 0x210]
cmp eax, 0x44574f43
jne 0x10063400
mov edi, 0xe0033001
jmp 0x1006351c
cmp eax, 0x564d444b
je 0x10063411
mov edi, 0xe00e1001
jmp 0x1006351c
push 0
push 0x200
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
call fcn.100a8300
or eax, edx
je 0x10063437
mov edi, 0xe003300c
jmp 0x1006351c
mov eax, dword [ebp - 0x1f4]
or eax, dword [ebp - 0x1f0]
jne 0x1006344f
mov edi, 0xe0033005
jmp 0x1006351c
cmp word [ebp - 0x1c3], 0
je 0x10063463
mov edi, 0xe0033003
jmp 0x1006351c
mov edi, dword [ebp - 0x1ec]
shl edi, 9
push 0x100dd790
push edi
call fcn.1007bfcf
mov ebx, eax
add esp, 8
mov dword [ebp - 0x238], ebx
mov byte [ebp - 4], 4
test ebx, ebx
jne 0x10063491
mov edi, 0x8007000e
jmp 0x1006350d
push edi
push 0
push ebx
call fcn.1008b230
mov ecx, dword [ebp - 0x1f4]
add esp, 0xc
mov eax, dword [ebp - 0x1f0]
shld eax, ecx, 9
push 0
push 0
push eax
shl ecx, 9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100634c8
call fcn.10015440
jmp 0x1006350b
push 0
lea eax, [ebp - 0x230]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
push esi
call eax
test eax, eax
jne 0x100634e6
call fcn.10015440
jmp 0x1006350b
lea ecx, [ebp - 0x22c]
call fcn.100229c0
mov ecx, dword [ebp - 0x234]
push 1
push dword [ebp - 0x244]
push ebx
call fcn.10063560
mov esi, dword [ebp - 0x22c]
mov edi, eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.10020530
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x1006352f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [ebp - 0x22c], 0xffffffff
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 4