Function at 0x10110a10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102482c0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x102ca474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10110a60
mov eax, dword [eax]
test eax, eax
je 0x10110a60
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.100086fc
test al, al
jne 0x10110d6b
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x10110d6b
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.10008714
push esi
push 0x80
push 3
push esi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x10110ad2
call fcn.100c45e0
test eax, eax
js 0x10110d59
jmp 0x10110ad7
mov esi, eax
mov dword [ebp - 0x18], esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x10110b23
call fcn.100c45e0
jmp 0x10110b66
mov eax, dword [ebp - 0x44]
xorps xmm0, xmm0
push 0
push eax
push 0
push 0
push 4
mov dword [ebp - 0x38], eax
push edi
mov dword [ebp - 0x24], 4
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x10110b6e
call fcn.100c45e0
push edi
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov dword [ebp - 0x34], edi
test eax, eax
js 0x10110d03
mov ecx, dword [ebp - 0x50]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
mov eax, dword [ecx + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10110d03
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
call edx
xorps xmm0, xmm0
mov dword [ebp - 0x4c], eax
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x50]
push 0
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
push eax
lea ecx, [ebp - 0x44]
call fcn.100d1c50
cmp dword [ebp - 0x54], 0
jbe 0x10110cd5
cmp dword [ebp - 0x4c], 0
jbe 0x10110cd5
cmp dword [ebp - 0x44], 0
je 0x10110cd5
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0xc], ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [eax + 0x18]
add ecx, 8
call fcn.1003cc70
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0x18]
mov ecx, dword [eax]
add eax, 0x14
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10110c66
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10110c63
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10110c63
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x10110c92
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x10110c8b
call fcn.100c45e0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
test edi, edi
je 0x10110cb6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x10110cad
cmp dword [ebp - 0x4c], eax
jl 0x10110cad
call fcn.100c45e0
mov dword [ebp - 0x34], 0
jmp 0x10110cbc
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x10110cce
push esi
call edi
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x10110d6d
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10110d03
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10110d00
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10110d00
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x10110d2f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x10110d28
call fcn.100c45e0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
test edi, edi
je 0x10110d53
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x10110d4a
cmp dword [ebp - 0x4c], eax
jl 0x10110d4a
call fcn.100c45e0
mov dword [ebp - 0x34], 0
jmp 0x10110d59
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
test esi, esi
je 0x10110d6b
push esi
call edi
mov dword [ebp - 0x18], 0
xor al, al
mov byte [ebp - 0x45], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10110d95
mov eax, dword [ecx]
test eax, eax
je 0x10110d8b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x45]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e7040
mov esp, ebp
pop ebp
ret 4