Function at 0x1002db40
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x100767e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x58]
xor esi, esi
cmp ecx, esi
je 0x1002db92
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x20], esi
call eax
mov dword [esp + 0x1c], eax
jmp 0x1002db96
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.1002cba0
mov esi, eax
test esi, esi
je 0x1002dbd8
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0
je 0x1002dd49
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
jmp 0x1002dd3e
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
test eax, eax
jne 0x1002dd19
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x1002dc03
mov esi, 4
mov eax, 0x10000000
lea ebp, [esi - 2]
lea ecx, [esi + 0x7c]
jmp 0x1002dc15
mov esi, 2
mov eax, bind
lea ebp, [esi + 2]
mov ecx, 0x8000000
cmp dword [ebx + 0x18], 0x10
jb 0x1002dc20
mov edx, dword [ebx + 4]
jmp 0x1002dc23
lea edx, [ebx + 4]
push 0
push ecx
push 4
push 0
push 1
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [edi + 0x98], eax
jne 0x1002dc6c
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], 0
je 0x1002dc62
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffff3
jmp 0x1002dd4b
cmp dword [edi + 4], 1
jne 0x1002dcc5
mov eax, dword [esp + 0x34]
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x98]
push 0
push ecx
push 0
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [edi + 0x9c], eax
jne 0x1002dce9
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], eax
je 0x1002dcbb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffffc
jmp 0x1002dd4b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [edi + 0x10], eax
jne 0x1002dc79
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x14]
call fcn.10018b50
mov eax, 0xfffffffd
jmp 0x1002dd4b
push 0
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x1002dd0f
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x14]
call fcn.10018b50
mov eax, 0xfffffffb
jmp 0x1002dd4b
mov ebp, dword [esp + 0x14]
mov dword [edi + 0xa0], eax
mov eax, dword [esp + 0x38]
push eax
call fcn.1002c730
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0
je 0x1002dd49
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc