Function at 0x10036730
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10079a58
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008d0a0]
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 0x10036782
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 0x10036786
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.10035790
mov esi, eax
test esi, esi
je 0x100367c8
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0
je 0x10036939
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
jmp 0x1003692e
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
test eax, eax
jne 0x10036909
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x100367f3
mov esi, 4
mov eax, 0x10000000
lea ebp, [esi - 2]
lea ecx, [esi + 0x7c]
jmp 0x10036805
mov esi, 2
mov eax, closesocket
lea ebp, [esi + 2]
mov ecx, 0x8000000
cmp dword [ebx + 0x18], 0x10
jb 0x10036810
mov edx, dword [ebx + 4]
jmp 0x10036813
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 0x1003685c
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], 0
je 0x10036852
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 0x1003693b
cmp dword [edi + 4], 1
jne 0x100368b5
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 0x100368d9
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], eax
je 0x100368ab
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 0x1003693b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [edi + 0x10], eax
jne 0x10036869
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x14]
call fcn.1001b940
mov eax, 0xfffffffd
jmp 0x1003693b
push 0
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x100368ff
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x14]
call fcn.1001b940
mov eax, 0xfffffffb
jmp 0x1003693b
mov ebp, dword [esp + 0x14]
mov dword [edi + 0xa0], eax
mov eax, dword [esp + 0x38]
push eax
call fcn.10035320
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0
je 0x10036939
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