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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x34]
xor edx, edx
div dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x28], 1
jbe 0x4b2017
mov esi, dword [ebx + 0x38]
push ebx
call fcn.004b1893
pop ecx
xor eax, eax
jmp 0x4b2010
lea edx, [eax + eax*2]
mov ecx, dword [ebx + 0x3c]
mov dword [ecx + edx*8 + 0xc], 0
lea edx, [eax + eax*2]
mov ecx, dword [ebx + 0x3c]
mov dword [ecx + edx*8 + 0x10], 0
lea edx, [eax + eax*2]
mov ecx, dword [ebx + 0x3c]
mov dword [ecx + edx*8 + 0x14], esi
mov edx, dword [ebx + 0xc]
add edx, 4
imul edx, dword [ebx + 0x30]
add esi, edx
inc eax
cmp eax, dword [ebx + 0x28]
jb 0x4b1fdd
jmp 0x4b2041
push ebx
call fcn.004b154e
pop ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x24]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x24]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 0x3c]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
mov dword [edx + 0x14], ecx
push ebx
call fcn.004b1a7e
pop ecx
xor esi, esi
jmp 0x4b20d4
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push edx
push ebx
call fcn.004b1bbc
add esp, 0xc
test eax, eax
jne 0x4b207a
push 0
push 0
push str.hb_cdxSortOut:_memory_structure_corrupted.
push 0x2458
call fcn.00464d9c
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4b20a4
test esi, esi
je 0x4b20a4
push 0
mov ecx, edi
push ecx
push dword [ebp - 0xc]
mov eax, edi
push eax
lea edx, [ebx + 0x148]
push edx
push dword [ebx]
call fcn.004a57f1
add esp, 0x18
test eax, eax
je 0x4b20d3
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push ebx
call fcn.004b158f
add esp, 0x14
push edi
push dword [ebp - 0xc]
lea ecx, [ebx + 0x148]
push ecx
call fcn.004cf9ec
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [ebx + 0x238], eax
inc esi
cmp esi, dword [ebx + 0x20]
jb 0x4b204f
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xc]
push ecx
push ebx
call fcn.004b1bbc
add esp, 0xc
test eax, eax
je 0x4b2108
push 0
push 0
push str.hb_cdxSortOut:_memory_structure_corrupted_2_.
push 0x245a
call fcn.00464d9c
add esp, 0x10
cmp dword [ebx + 0x40], 0
jne 0x4b212f
push 0
push 0
push dword [ebx]
call fcn.004a8483
add esp, 0xc
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x40]
mov byte [eax + 0xc], 2
push dword [ebx + 0x40]
call fcn.004a7aa2
pop ecx
xor esi, esi
mov edi, 1
lea eax, [esi + 1]
cmp eax, 0x40
je 0x4b2145
cmp dword [ebx + esi*4 + 0x44], 0
jne 0x4b215c
mov edx, dword [ebx + esi*4 + 0x40]
or byte [edx + 0xc], 1
mov ecx, dword [ebx + esi*4 + 0x40]
mov eax, dword [ecx]
mov edx, dword [ebx]
mov dword [edx + 0x78], eax
xor edi, edi
jmp 0x4b217c
mov eax, dword [ebx + esi*4 + 0x40]
push dword [eax]
push dword [ebx + 0x238]
lea edx, [ebx + 0x148]
push edx
lea ecx, [esi + 1]
push ecx
push ebx
call fcn.004b158f
add esp, 0x14
push 1
push dword [ebx + esi*4 + 0x40]
call fcn.004a85cd
add esp, 8
inc esi
test edi, edi
jne 0x4b2136
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret