Function at 0x10010384
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x6c]
push ebp
call fcn.1000fb50
add esp, 4
cmp al, 2
jne 0x10010418
push esi
push edi
push ebp
call fcn.1000faf0
mov esi, eax
push esi
call fcn.10010ca0
mov edi, eax
push edi
mov dword [esp + 0x2c], edi
call fcn.100051d0
add esp, 0xc
test al, 0x40
jne 0x10010416
push ebx
push 0x40
push edi
call fcn.100051a0
push ebp
call fcn.1000fb20
cdq
xor ebx, ebx
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x30], ebx
call fcn.100056c0
add esp, 0x10
cmp eax, ebx
je 0x100101b5
push eax
call fcn.100056a0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x100101b5
push eax
call fcn.1000fca0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
call 0x10010120
add esp, 0x10
push esi
call fcn.10010cd0
push eax
call fcn.10014b40
push edi
mov dword [esp + 0x54], eax
call fcn.100051f0
push eax
call fcn.10011dd0
push edi
mov dword [esp + 0x54], eax
call fcn.10005710
mov edx, dword [esp + 0x88]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x37], bl
mov dword [esp + 0x3c], ebx
call fcn.10005740
mov esi, dword [esp + 0xa0]
add esp, 0x24
cmp eax, 1
jne 0x10010261
mov byte [esp + 0x13], al
test esi, esi
je 0x10010261
mov eax, dword [0x1001e7f8]
test byte [eax + 0x60], 1
je 0x10010246
mov eax, esi
call fcn.1000fe20
mov ecx, dword [esp + 0x40]
push ecx
push str.Unprepared_class_with_references:__s_n
call fcn.10005d20
add esp, 8
push 0x184
push str.hprof_reference.c
push str.Trouble_with_unprepared_classes
push 0
push 0
call fcn.10005d70
add esp, 0x14
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x1001028f
lea edx, [eax*8]
push edx
call fcn.10015d30
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax*8]
push ecx
push 0
push ebx
call sub.msvcr100.dll_memset
add esp, 0x10
push 0x10
push 0x10
push 0x10
call fcn.10011be0
mov dword [esp + 0x34], eax
xor eax, eax
add esp, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
cmp esi, eax
je 0x100103ab
mov edx, dword [0x1001e7f8]
mov eax, dword [edx + 0x254]
push esi
push eax
call fcn.10012a30
mov ebp, eax
movzx eax, byte [ebp + 0x10]
add esp, 8
dec eax
je 0x1001041d
dec eax
jne case.0x1001042d.7
cmp byte [esp + 0x13], 1
je case.0x1001042d.7
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [0x1001e7f8]
mov ecx, dword [eax + 0x254]
lea edx, [esp + 0x30]
push edx
push esi
push ecx
call fcn.10012ac0
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
je 0x10010322
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x10010336
mov ecx, dword [0x1001e408]
mov edx, dword [0x1001e40c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
movzx ecx, byte [ebp + 0x12]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 4]
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x84]
push ecx
push eax
mov dword [esp + 0x3c], eax
push edx
mov eax, edi
call fcn.10010010
add esp, 0x14
test edi, edi
js 0x10010380
cmp edi, dword [esp + 0x2c]
jge 0x10010380
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [ebx + edi*8], eax
mov dword [ebx + edi*8 + 4], ecx
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x100102b3
cmp dword [esp + 0x1c], esi
jle 0x100103a7
mov ecx, dword [esp + 0x28]
push esi
push ecx
call fcn.10011c20
add esp, 8
mov dword [esp + 0x34], eax
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
push ebx
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x90]
push edx
push eax
push ecx
call fcn.1000ead0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
add esp, 8
push eax
mov eax, dword [esp + 0x6c]
push edx
push eax
push ebp
push ecx
push edi
call fcn.1000d640
mov edx, dword [esp + 0x60]
push edx
call fcn.10011cc0
add esp, 0x3c
test ebx, ebx
je 0x10010415
push ebx
call sub.msvcr100.dll_free
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret
movzx eax, byte [ebp + 0x11]
add eax, 0xfffffffb
cmp eax, 4
ja case.0x1001042d.7
jmp dword [eax*4 + 0x100104d0]
cmp byte [esp + 0x13], 1
je case.0x1001042d.7
mov eax, dword [0x1001e43c]
mov ecx, dword [ebp]
mov edx, dword [0x1001e438]
mov edi, dword [ebp + 4]
mov esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x84]
push eax
push ecx
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x3c], edx
call fcn.100100e0
add esp, 0x10
jmp 0x10010380
mov esi, dword [ebp]
push esi
call fcn.1000faf0
push eax
call fcn.10010ca0
mov edx, dword [ebp + 4]
push eax
mov dword [esp + 0x6c], edx
call fcn.100051f0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
push ecx
mov dword [esp + 0x7c], esi
call fcn.10011c80
add esp, 0x14
inc dword [esp + 0x1c]
jmp case.0x1001042d.7
mov edx, dword [ebp]
mov dword [esp + 0x3c], edx
jmp case.0x1001042d.7
mov eax, dword [ebp]
mov dword [esp + 0x38], eax
jmp case.0x1001042d.7
jmp 0x10010120