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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082d08
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x100a6250]
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 eax, ecx
mov dword [ebp - 0x90], eax
mov esi, dword [ebp + 8]
lea edi, [eax + 0x24]
test esi, esi
jne 0x10036f14
xor ecx, ecx
jmp 0x10036f2f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10036f20
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.10007190
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
je 0x10037352
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jle 0x10036f9f
lea esi, [ebx + 8]
push esi
call fcn.1001a71b
push esi
mov edi, eax
push 0
push edi
call fcn.100456c0
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x9c]
add esp, 0x10
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x10036fa5
mov esi, dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10037352
test ebx, ebx
jle 0x10037352
push edi
call fcn.1002c840
mov esi, eax
add esp, 4
test esi, esi
je 0x10037349
mov dword [ebp - 0xa0], esi
mov dword [ebp - 4], 0
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x10037370
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov eax, 0x10087e70
mov byte [ebp - 4], 1
shr eax, 0x10
mov ecx, 0x10087e70
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x10037025
movzx eax, cx
lea ecx, [ebp - 0x8c]
push eax
call fcn.100336b0
jmp 0x10037037
push 0
push 0x10087e70
lea ecx, [ebp - 0x8c]
call fcn.10007190
push 0x1008e28c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1001bfe8
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.1002da10
add esp, 0x14
mov ecx, dword [ebp - 0x90]
push eax
mov byte [ebp - 4], 4
lea ecx, [ecx + 8]
call fcn.1001f5f0
mov edx, dword [ebp - 0x94]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100370a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.10006680
mov edx, dword [ebp - 0x8c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100370c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.emType
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push esi
call fcn.1002d8e0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.10006680
push str.nBagSize
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
push esi
call fcn.1002d8e0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 0x18], eax
lea ecx, [ebp - 0x28]
call fcn.10006680
push str.nIndex
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
push esi
call fcn.1002d8e0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x28]
call fcn.10006680
push str.size
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
push esi
call fcn.1002d8e0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x70]
call fcn.1001bfe8
push str.state
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.1001bfe8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x58]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.1002d920
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
call fcn.10006680
cmp dword [ebp - 0x30], 0
je 0x1003725f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100082d0
add esp, 8
test al, al
je 0x10037253
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1003ecf0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xf
jb 0x10037239
mov eax, dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
lea ecx, [ecx + 0x20]
call fcn.10014440
lea ecx, [ebp - 0x88]
call fcn.100066d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.10006680
call fcn.10031f30
mov ecx, eax
test ecx, ecx
je 0x1003737a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x98], 0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
jne 0x1003729f
mov eax, 0x10087e70
movzx eax, ax
push eax
call fcn.100336b0
jmp 0x100372ab
push 0
push 0x10087e70
call fcn.10007190
push 0x10088cd4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.1001bfe8
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.1002da10
add esp, 0x14
mov ecx, dword [ebp - 0x90]
push eax
mov byte [ebp - 4], 0x13
lea ecx, [ecx + 0xc]
call fcn.1001f5f0
mov edx, dword [ebp - 0x94]
mov eax, ebx
mov byte [ebp - 4], 0x12
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10037311
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.10006680
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10037338
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.10006680
push esi
call fcn.1002c6d0
add esp, 4
push edi
call fcn.1001a724
add esp, 4
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.1001a767
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10006e50
push 0x80004005
call fcn.10006e50
int3