Function at 0x10006010
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0xc], ecx
push edi
xor edx, edx
mov ecx, 2
xor ebx, ebx
xor edi, edi
call fcn.1000b640
test ebp, ebp
je 0x10006388
push 0x30
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10006388
cmp word [ebp], 0x30
jb 0x10006388
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x10006149
push 0x40
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1000f080
add esp, 0xc
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.GDI32.dll_GetObjectType]
cmp eax, 0xc
mov dword [esp + 0x18], eax
je 0x10006089
cmp eax, 4
jne 0x10006149
mov ecx, dword [ebp + 0x28]
push 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10006388
mov eax, dword [ebp + 0x28]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 8]
mov cx, word [ebp + 0x22]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
mov dx, word [ebp + 0x20]
mov dword [esp + 0x28], eax
movzx eax, word [ebp + 0xe]
test ax, ax
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 0x64
mov word [esp + 0x30], cx
mov word [esp + 0x32], dx
jne 0x10006125
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xac]
mov eax, dword [0x1001b118]
cmp edx, dword [eax]
jne 0x10006104
mov ecx, dword [ecx + 0xb0]
cmp ecx, dword [eax + 4]
je 0x1000610b
cmp word [ebp + 0x10], 8
jne 0x10006137
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x34], 3
call fcn.10008bf0
jmp 0x1000638d
movzx ecx, ax
call fcn.100050a0
cmp eax, 8
jne 0x10006137
or dword [esp + 0x34], 2
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
call fcn.10008bf0
jmp 0x1000638d
mov edx, dword [0x1001bf40]
push 0xb10
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor edx, edx
cmp ebx, edx
jne 0x1000616f
mov edi, 0x3301
jmp 0x1000638d
mov ecx, 0xc
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movzx eax, word [ebx + 0xe]
movzx ecx, byte [ebx + 0x10]
mov dword [ebx + 0x38], eax
movzx eax, byte [ebx + 0x12]
and eax, 0x1f
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x1c]
and ecx, 0x1f
test eax, 0x1100
mov dword [ebx + 0x3c], ecx
je 0x100061bf
or dword [ebx + 0x48], 2
test eax, 0x1000
mov ecx, dword [ebx + 0x48]
je 0x100061bf
or ecx, 0xc00
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov esi, dword [esp + 0x10]
mov dword [ebx + 0xb0], 0xffffffff
mov dword [ebx + 0xa8], esi
cmp dword [esi], edx
je 0x100061e7
test dword [esi + 0x50], 0x1000
jne 0x100061e7
mov ecx, esi
call fcn.1000c210
push esi
mov eax, ebx
call fcn.100055f0
mov edi, eax
test edi, edi
jne 0x1000638d
cmp dword [esi + 0x78], eax
je 0x10006231
push esi
mov edx, ebx
call fcn.10005970
test al, al
je 0x10006231
test byte [ebx + 0x48], 1
je 0x1000621f
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000626d
mov dword [ebp + 0xa], eax
jmp 0x1000638d
cmp dword [ebx + 0x50], 0
je 0x1000626d
call fcn.100049b0
mov edi, eax
jmp 0x1000638d
mov eax, dword [ebx + 0x30]
test eax, eax
jle 0x1000624f
mov edx, dword [ebx + 0x14]
lea ecx, [eax + eax]
push ecx
push edx
lea eax, [ebx + 0xb8]
push eax
call fcn.1000ed10
add esp, 0xc
mov eax, dword [ebx + 0x34]
test eax, eax
jle 0x1000626d
mov edx, dword [ebx + 0x18]
lea ecx, [eax + eax]
push ecx
push edx
lea eax, [ebx + 0x2c0]
push eax
call fcn.1000ed10
add esp, 0xc
mov eax, dword [ebx + 0x48]
test al, 4
je 0x10006297
cmp dword [ebx + 0x90], 0
jne 0x10006297
cmp dword [ebx + 0x44], 0
jne 0x10006287
test al, 2
je 0x10006297
push esi
call fcn.10004d10
mov edi, eax
test edi, edi
jne 0x1000638d
test byte [ebx + 0x48], 2
je 0x10006310
push esi
mov ecx, ebx
call fcn.10005dc0
mov edi, eax
test edi, edi
jne 0x1000638d
cmp dword [ebx + 0x50], eax
jne 0x100062f4
mov ecx, dword [ebx + 0xb4]
push eax
push 0x100
push 3
push eax
push 1
push 0xc0000000
push ecx
call fcn.1000e020
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebx + 0xb0], eax
jne 0x100062e8
mov edi, 0x3303
jmp 0x1000638d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x50], eax
test byte [ebx + 0x48], 1
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x50]
lea eax, [edx + eax + 0x1a]
mov dword [ebx + 0x4c], eax
je 0x10006225
mov dword [ebp + 0xa], eax
jmp 0x1000638d
cmp dword [ebx + 0x64], 0
jne 0x10006324
push esi
mov eax, ebx
call fcn.100051e0
mov edi, eax
test edi, edi
jne 0x1000638d
test byte [ebx + 0x48], 1
je 0x10006332
mov ecx, dword [ebx + 0x4c]
mov dword [ebp + 0xa], ecx
jmp 0x1000638d
cmp dword [ebx + 2], 0xffffffff
jne 0x10006347
mov edx, dword [ebx + 0xa]
cmp edx, dword [ebx + 0x4c]
jae 0x10006347
mov edi, 0x3302
jmp 0x1000638d
push esi
mov esi, ebx
call fcn.10004590
mov edi, eax
test edi, edi
jne 0x1000638d
cmp dword [ebx + 0x44], eax
je 0x1000638d
test byte [ebx + 0x48], 0x10
jne 0x1000638d
push ebx
call fcn.10004be0
mov edi, eax
test edi, edi
jne 0x1000638d
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x4c8]
push ecx
mov ecx, ebx
mov dword [ebx + 0xac], eax
call fcn.10005dc0
mov edi, eax
jmp 0x1000638d
mov edi, 0x3300
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x78], 0
je 0x1000639e
mov ecx, esi
call fcn.100055c0
test ebx, ebx
je 0x100063c8
test byte [ebx + 0x48], 1
je 0x100063b1
test edi, edi
jne 0x100063b1
mov dword [esi + 0x78], ebx
jmp 0x100063c8
mov esi, ebx
call fcn.10005000
mov edx, dword [0x1001bf40]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov ecx, 3
call fcn.1000b640
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret