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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x8c
mov ecx, dword [ecx + 4]
mov edi, dword [ebx]
mov dword [esp + 0x28], 0
mov ebp, ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
sub ebp, edi
je 0x5b4d80
cmp ebp, 0x7ffffff8
ja 0x5b4e09
mov dword [esp], ebp
call fcn.005c2f70
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
mov esi, eax
add ebp, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebp
cmp edi, ecx
je 0x5b4ba0
mov eax, edi
mov edx, esi
mov ebp, dword [eax]
add eax, 0xc
add edx, 0xc
mov dword [edx - 0xc], ebp
mov ebp, dword [eax - 8]
mov dword [edx - 8], ebp
mov ebp, dword [eax - 4]
mov dword [edx - 4], ebp
cmp ecx, eax
jne 0x5b4b70
lea eax, [ecx - 0xc]
sub eax, edi
shr eax, 2
imul eax, eax, 0x2aaaaaab
lea eax, [eax + eax*2]
lea esi, [esi + eax*4 + 0xc]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x2c], esi
lea ebp, [esp + 0x28]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], eax
mov edi, dword [ebx + 0x44]
mov eax, dword [edx + 0x20]
sub eax, dword [edx + 0x1c]
mov dword [esp + 0x50], edx
mov esi, eax
mov dword [esp + 0x38], 0
sar esi, 3
mov dword [esp + 0x3c], 0
imul edx, esi, 0xaaaaaaab
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], ebp
mov esi, edx
test eax, eax
js 0x5b4e0e
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test edx, edx
je 0x5b4d90
lea esi, [edx*8]
mov dword [esp], esi
call fcn.005c2f70
lea edx, [eax + esi]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
lea esi, cs:[esi]
mov dword [eax], 0
add eax, 8
mov dword [eax - 4], 0
cmp eax, edx
jne 0x5b4c40
mov eax, dword [esp + 0x50]
mov esi, dword [eax + 0x20]
sub esi, dword [eax + 0x1c]
sar esi, 3
imul esi, esi, 0xaaaaaaab
mov dword [esp], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.005c2f40
mov edx, eax
mov eax, esi
sub eax, 1
js 0x5b4cb0
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x70], edx
test edi, 0x80
je 0x5b4cbf
and edi, 0xfffffffa
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], eax
call fcn.00477940
mov esi, eax
test al, al
jne 0x5b4db0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x5b4cf9
mov dword [esp], eax
call fcn.005c2f10
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
cmp edi, ebx
je 0x5b4d22
lea esi, [esi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x5b4d70
mov dword [esp], eax
add ebx, 0x10
call fcn.005c2f20
cmp edi, ebx
jne 0x5b4d08
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x5b4d2e
mov dword [esp], ebx
call fcn.005c2f20
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5b4d3e
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5b4d4e
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5b4d5e
mov dword [esp], eax
call fcn.005c2f20
add esp, 0x8c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
add ebx, 0x10
cmp edi, ebx
jne 0x5b4d08
jmp 0x5b4d1e
xor esi, esi
jmp 0x5b4b5e
mov dword [esp + 0x58], 0
xor edx, edx
mov dword [esp + 0x60], 0
jmp 0x5b4c67
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
xor edx, edx
mov edi, ecx
sub edi, eax
sar edi, 2
imul edi, edi, 0xaaaaaaab
cmp ecx, eax
je 0x5b4ce9
mov ecx, esi
mov byte [esp + 0x1c], cl
lea esi, [esi]
cmp byte [eax + 8], 0
je 0x5b4df5
mov ebp, dword [ebx]
lea ecx, [edx + edx*2]
mov esi, dword [eax]
lea ecx, [ebp + ecx*4]
mov ebp, dword [eax + 4]
mov dword [ecx], esi
mov dword [ecx + 4], ebp
mov byte [ecx + 8], 1
add edx, 1
add eax, 0xc
cmp edx, edi
jb 0x5b4dd8
movzx esi, byte [esp + 0x1c]
jmp 0x5b4ce9
call fcn.005da180
mov dword [esp], 0x5fa58c
call fcn.005da300
mov ebx, eax
jmp 0x5b4e38
lea ecx, [esp + 0x34]
call fcn.0057dbb0
mov ecx, ebp
call fcn.0057dbb0
mov dword [esp], ebx
call fcn.004e5360
lea ecx, [esp + 0x34]
call fcn.005b5580
jmp 0x5b4e41