Function at 0x30010d87
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
jle 0x300113bf
cmp dword [0x300285d8], edi
je 0x30010dc5
mov dword [ebx + 0x20], 1
mov ecx, dword [ebx + 0x38]
cmp ecx, edi
jne 0x30010dd1
cmp dword [ebx + 0x34], edi
je 0x30010dea
cmp dword [ebx + 0x1c], edi
jne 0x300113bf
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x30010dea
cmp word [eax], di
jne 0x300113bf
cmp ecx, edi
je 0x30010e2f
mov eax, dword [ebx]
cmp eax, edi
je 0x30010dfd
cmp byte [eax], 0
jne 0x300113bf
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x30010e0d
cmp byte [eax], 0
jne 0x300113bf
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x30010e1d
cmp word [eax], di
jne 0x300113bf
cmp dword [ebx + 0x20], edi
jne 0x300113bf
cmp dword [ebx + 0x24], edi
jne 0x300113bf
mov ecx, dword [ebx]
cmp ecx, edi
je 0x30010eaa
cmp byte [ecx], 0
je 0x30010eaa
mov al, byte [ecx]
test al, al
je 0x30010e73
mov esi, ecx
cmp al, 0x3b
je 0x30010e4e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x30010e42
cmp byte [esi], 0
jne 0x30010e61
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.30010207
mov ecx, esi
jmp 0x30010e3a
and byte [esi], 0
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.30010207
lea ecx, [esi + 1]
jmp 0x30010e3a
push dword [ebp - 0x10]
call fcn.3001013b
cmp eax, edi
mov dword [ebp - 8], eax
jle 0x30010eaa
inc dword [ebp - 8]
push 0x106
push dword [ebp - 8]
call fcn.3001df79
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x30010ea7
push dword [ebp - 8]
push eax
push dword [ebp - 0x10]
call fcn.3001017b
jmp 0x30010eaa
mov dword [ebp - 8], edi
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x30010ec0
cmp byte [eax], 0
je 0x30010ec0
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.3000fbd2
cmp dword [ebx + 0x1c], edi
je 0x30010ed5
cmp dword [0x300285e4], edi
jne 0x30010ed5
mov eax, dword [0x30025908]
mov dword [ebp - 0x14], eax
lea esi, [ebx + 8]
push esi
call fcn.30010c89
lea edi, [ebx + 0xc]
push edi
call fcn.30010c89
cmp dword [ebp - 0x14], 0
je 0x30010ef9
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp word [ecx], ax
ja 0x30010f17
jmp 0x30010efb
xor eax, eax
cmp dword [ebp - 8], eax
jg 0x30010f17
cmp dword [ebp - 0xc], eax
jne 0x30010f17
cmp dword [ebx + 0x20], eax
jne 0x30010f17
cmp dword [ebx + 0x24], eax
jne 0x30010f17
cmp dword [esi], eax
jne 0x30010f17
cmp dword [edi], eax
je 0x30010f74
mov eax, dword [ebx + 0x24]
push dword [ebp - 0x14]
or eax, dword [ebx + 0x20]
push eax
lea eax, [ebx + 0x2c]
push eax
push dword [edi]
push dword [esi]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.3001063c
test eax, eax
je 0x30011301
cmp dword [0x30028380], 0
jne 0x30010f74
push ebx
push 0x30008e90
push dword [0x300270e8]
push 0x6d
push dword [0x300283bc]
call fcn.30007943
test eax, eax
jne 0x30010f74
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 1
jmp 0x30011301
push 1
pop esi
mov dword [ebp - 4], esi
mov dword [ebx + 0x30], esi
call fcn.300143c9
test eax, eax
je 0x300113bf
xor edi, edi
cmp dword [ebx + 0x20], edi
je 0x30010fbf
cmp dword [0x300285e4], edi
jne 0x30010fbf
mov eax, dword [0x300252d8]
cmp eax, edi
jne 0x30010faa
mov dword [ebp - 4], edi
jmp 0x300112db
push dword [0x300252dc]
push eax
push 0x30010d46
call fcn.30014493
test eax, eax
je 0x30010fa2
cmp dword [ebx + 0x24], edi
je 0x30011002
cmp dword [0x300285e4], edi
jne 0x30011002
cmp dword [0x300283c8], edi
jne 0x30011002
push esi
push 0x300252e0
push 0x300254f8
call fcn.3000c832
mov eax, dword [0x300252e8]
cmp eax, edi
je 0x30010fa2
push dword [0x300252ec]
push eax
push 0x30010d52
call fcn.30014493
test eax, eax
je 0x30010fa2
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x24], edi
cmp word [eax], di
jbe 0x300110a4
mov dword [ebp + 8], edi
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 8]
push eax
call fcn.3001f3a8
mov esi, eax
lea eax, [ebp + 0xc]
inc esi
push esi
push eax
call fcn.3001e1c4
test eax, eax
je 0x300111fd
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [eax + 0xc]
lea esi, [eax + edx + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
call fcn.3000d677
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
add eax, ecx
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
call fcn.30014493
test eax, eax
je 0x30011206
push dword [ebp + 0xc]
call fcn.3001e2c6
mov eax, dword [ebx + 0x28]
inc dword [ebp - 0x24]
add dword [ebp + 8], 0x10c
movzx ecx, word [eax]
cmp dword [ebp - 0x24], ecx
jl 0x30011014
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
call fcn.30010bb4
test eax, eax
je 0x300110d0
push dword [ebp - 0x1c]
call fcn.3001f3a8
inc eax
push eax
push dword [ebp - 0x1c]
push 0x30010d66
call fcn.30014493
test eax, eax
je 0x30010fa2
cmp dword [ebp - 0x10], edi
je 0x300110e0
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.30010409
cmp dword [ebp - 0x14], edi
je 0x300110f6
cmp dword [ebx + 0x1c], edi
je 0x300110f6
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call fcn.3001042f
cmp dword [ebp - 0xc], edi
je 0x30011103
push dword [ebp - 0xc]
call fcn.30010554
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x3001122a
push 0x3b
push eax
call fcn.3000b265
mov dword [ebp + 0xc], eax
and byte [ebp + 0xb], 0
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocString
push eax
call fcn.3000de60
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x300111b8
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x24], eax
je 0x300111a9
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x300111a0
push 0x30010d72
push dword [ebp + 0xc]
call fcn.3000d6e2
push edi
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push esi
push dword [ebp + 8]
call fcn.30014493
test eax, eax
je 0x30011217
push dword [ebp + 8]
call fcn.3001dfaa
push esi
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp + 0xb], 0
jne 0x300111e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x30010d76
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call fcn.3000d6e2
mov esi, eax
lea eax, [ebp - 8]
push 4
push eax
push esi
mov byte [esi], 0x21
call fcn.30014493
test eax, eax
je 0x30011222
push esi
call fcn.3001dfaa
push 0x3b
push edi
call fcn.3000b265
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x3001122a
jmp 0x30011119
and dword [ebp - 4], 0
jmp 0x300112db
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.3001e2c6
jmp 0x300112db
push dword [ebp + 8]
mov dword [ebp - 4], edi
jmp 0x300112d6
mov dword [ebp - 4], edi
jmp 0x300112d5
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x300112db
push 0x3b
push eax
call fcn.3000b265
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.3000dfa8
mov edi, eax
test edi, edi
jle 0x3001128e
push 0x106
push edi
call fcn.3001df79
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
push esi
call fcn.3000e021
push 0x30010d7a
push esi
call fcn.3000d6e2
push edi
mov esi, eax
push dword [ebp + 8]
push esi
call fcn.30014493
test eax, eax
je 0x300112d1
push esi
call fcn.3001dfaa
push dword [ebp + 8]
jmp 0x300112b8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x30010d82
push esi
mov dword [ebp - 0x24], eax
call fcn.3000d6e2
mov esi, eax
lea eax, [ebp - 0x24]
push 4
push eax
push esi
mov byte [esi], 0x21
call fcn.30014493
test eax, eax
je 0x300112d1
push esi
call fcn.3001dfaa
push 0x3b
push 0
call fcn.3000b265
mov esi, eax
test esi, esi
je 0x300112db
jmp 0x3001123f
and dword [ebp - 4], 0
push esi
call fcn.3001dfaa
lea esi, [ebx + 0x14]
add ebx, 0x18
push esi
push ebx
call fcn.3001456d
test eax, eax
jne 0x30011301
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
mov dword [esi], edi
je 0x300112fe
push eax
call fcn.3001dfaa
mov dword [ebx], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x3001132e
xor esi, esi
cmp word [eax], bx
jbe 0x30011328
mov eax, dword [eax + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.OLEAUT32.DLL_SysStringLen]
mov eax, dword [ebp - 0xc]
inc esi
movzx ecx, word [eax]
cmp esi, ecx
jl 0x30011311
push eax
call fcn.30020ea7
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x30011371
xor edi, edi
cmp word [eax], bx
jbe 0x30011357
xor esi, esi
mov eax, dword [eax + 0xc]
add eax, esi
push eax
call fcn.3000c416
mov eax, dword [ebp - 0x20]
inc edi
add esi, 0x10
movzx ecx, word [eax]
cmp edi, ecx
jl 0x3001133e
push eax
call fcn.300211ef
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov esi, ecx
je 0x30011371
call fcn.3000f7bc
push esi
call fcn.3001dfaa
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x300113a0
xor esi, esi
cmp word [eax], bx
jbe 0x3001139a
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
je 0x30011392
push ecx
call fcn.3001dfaa
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
inc esi
cmp esi, ecx
jl 0x3001137f
push eax
call fcn.30020ea7
cmp dword [ebp - 0x18], ebx
je 0x300113ad
push dword [ebp - 0x18]
call fcn.3001dfaa
cmp dword [ebp - 0x1c], ebx
je 0x300113ba
push dword [ebp - 0x1c]
call fcn.3001dfaa
mov eax, dword [ebp - 4]
jmp 0x300113c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8