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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
mov dword [esp + 8], ecx
test edi, edi
je 0x1004b34a
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
lea ebx, [esi + 4]
jmp 0x1004b336
add ebx, 0x24
dec edi
je 0x1004b34a
cmp dword [ebx - 4], 0
je 0x1004b330
push dword [ebx]
push 0
push dword [0x101990e0]
call ebp
jmp 0x1004b330
mov edi, dword [esp + 8]
cmp dword [edi + 4], 0
je 0x1004b363
push esi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
test ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
je 0x1004b47d
xor esi, esi
jmp 0x1004b3bd
cmp dword [edi + 0x28], 0
mov ecx, 0x2c
je 0x1004b399
push dword [edi + ecx]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [edi + 0x50]
mov ecx, edi
call fcn.1004b070
push edi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
inc esi
cmp esi, dword [esp + 0x10]
je 0x1004b47d
mov ecx, dword [esp + 0xc]
imul eax, esi, 0x70
mov ebx, dword [ecx + eax]
lea edx, [ecx + eax]
mov dword [esp + 4], edx
cmp ebx, 0x80000000
jne 0x1004b410
mov ebp, dword [edx + 0xc]
mov edi, dword [edx + 8]
test ebp, ebp
je 0x1004b3fd
mov ebx, edi
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, ebx
call fcn.1004b070
add ebx, 8
dec ebp
jne 0x1004b3f0
mov eax, dword [esp + 4]
cmp dword [eax + 4], 0
jne 0x1004b3a3
jmp 0x1004b3b2
mov ebp, dword [edx + 8]
mov eax, dword [edx + 4]
test ebp, ebp
mov dword [esp], eax
je 0x1004b42d
mov edi, dword [esp]
mov ecx, edi
call fcn.1004b070
add edi, 8
dec ebp
jne 0x1004b420
test ebx, ebx
je 0x1004b442
push dword [esp]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [esp + 4]
mov edx, 1
mov eax, dword [edi + 0x24]
lea ecx, [eax - 0x80000000]
cmp ecx, 3
cmovae ecx, edx
test ecx, ecx
je 0x1004b399
cmp ecx, 1
jne 0x1004b37d
mov ecx, 0x28
test eax, eax
jne 0x1004b388
jmp 0x1004b399
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0
je 0x1004b499
push dword [esp + 0xc]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x1004b51e
xor ebp, ebp
mov dword [esp], ebx
mov dword [esp + 0xc], esi
jmp 0x1004b4bf
add edi, 4
mov ecx, edi
inc ebp
call fcn.1004b6a0
cmp ebp, esi
je 0x1004b51e
imul eax, ebp, 0x98
cmp dword [ebx + eax], 0x110009
lea edi, [ebx + eax]
je 0x1004b4b0
mov esi, dword [edi + 0x7c]
mov eax, dword [edi + 0x78]
test esi, esi
mov dword [esp + 4], eax
je 0x1004b4fd
mov ebx, dword [esp + 4]
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, ebx
call fcn.1004b5b0
add ebx, 0x58
dec esi
jne 0x1004b4f0
cmp dword [edi + 0x74], 0
mov esi, dword [esp + 0xc]
je 0x1004b519
push dword [esp + 4]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [esp]
jmp 0x1004b4b3
mov edi, dword [esp + 8]
cmp dword [edi + 0x24], 0
je 0x1004b537
push ebx
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [edi + 0x38]
mov edi, dword [edi + 0x3c]
test edi, edi
je 0x1004b56a
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
lea ebx, [esi + 4]
jmp 0x1004b556
add ebx, 0x28
dec edi
je 0x1004b56a
cmp dword [ebx - 4], 0
je 0x1004b550
push dword [ebx]
push 0
push dword [0x101990e0]
call ebp
jmp 0x1004b550
mov edi, dword [esp + 8]
cmp dword [edi + 0x34], 0
je 0x1004b583
push esi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [edi + 0x44], 0
je 0x1004b59a
push dword [edi + 0x48]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret