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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, eax
mov eax, 4
mov ecx, 2
push edi
xor edi, edi
mov ebx, 1
mov ebp, 8
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov dword [esi + 0x78], edi
call fcn.004ff910
cmp byte [esi + 0x123], 0
je 0x50ba76
test byte [esi + 0x70], 2
jne 0x50ba22
mov eax, dword [esi + 0xcc]
add eax, 7
shr eax, 3
mov dword [esi + 0xd0], eax
jmp 0x50ba2e
mov ecx, dword [esi + 0xcc]
mov dword [esi + 0xd0], ecx
movzx eax, byte [esi + 0x124]
mov edx, dword [esi + 0xc8]
add eax, eax
add eax, eax
sub edx, dword [esp + eax + 0x30]
mov ecx, dword [esp + eax + 0x14]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
mov cl, byte [esi + 0x129]
cmp cl, 8
movzx ecx, cl
mov dword [esi + 0xe0], eax
jb 0x50ba6b
shr ecx, 3
imul ecx, eax
jmp 0x50ba94
imul ecx, eax
add ecx, 7
shr ecx, 3
jmp 0x50ba94
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xd8]
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0xc8]
mov dword [esi + 0xe0], eax
movzx eax, byte [esi + 0x129]
add ecx, ebx
mov ebx, dword [esi + 0x70]
test bl, 4
mov dword [esi + 0xdc], ecx
je 0x50bab6
cmp byte [esi + 0x127], 8
jae 0x50bab6
mov eax, ebp
mov ebp, ebx
and ebp, 0x1000
je 0x50bb1e
mov cl, byte [esi + 0x126]
cmp cl, 3
jne 0x50bae0
xor eax, eax
cmp word [esi + 0x11a], di
setne al
lea eax, [eax*8 + 0x18]
jmp 0x50bb1e
test cl, cl
jne 0x50bafb
cmp eax, 8
jge 0x50baee
mov eax, 8
cmp word [esi + 0x11a], di
je 0x50bb1e
add eax, eax
jmp 0x50bb1e
cmp cl, 2
jne 0x50bb1e
cmp word [esi + 0x11a], di
je 0x50bb1e
lea ecx, [eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebx
and edx, 0x8000
je 0x50bb6b
mov cl, byte [esi + 0x126]
cmp cl, 3
jne 0x50bb3a
mov eax, 0x20
jmp 0x50bb6b
test cl, cl
jne 0x50bb51
xor ecx, ecx
cmp eax, 8
setg cl
sub ecx, 1
and ecx, 0xfffffff0
add ecx, 0x20
jmp 0x50bb67
cmp cl, 2
jne 0x50bb6b
xor ecx, ecx
cmp eax, 0x20
setg cl
sub ecx, 1
and ecx, 0xffffffe0
add ecx, 0x40
xor edi, edi
mov eax, ecx
test ebx, 0x4000
je 0x50bbc9
cmp word [esi + 0x11a], di
je 0x50bb80
cmp ebp, edi
jne 0x50bbb6
cmp edx, edi
jne 0x50bbb6
mov cl, byte [esi + 0x126]
cmp cl, 4
je 0x50bbb6
cmp eax, 8
jg 0x50bba5
xor eax, eax
cmp cl, 6
sete al
lea eax, [eax*8 + 0x18]
jmp 0x50bbc9
sub cl, 6
neg cl
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x40
mov eax, ecx
jmp 0x50bbc9
xor edx, edx
cmp eax, 0x10
setg dl
sub edx, 1
and edx, 0xffffffe0
add edx, 0x40
mov eax, edx
test ebx, 0x100000
je 0x50bbe2
movzx ecx, byte [esi + 0x65]
movzx edx, byte [esi + 0x64]
imul ecx, edx
cmp ecx, eax
jle 0x50bbe2
mov eax, ecx
mov ecx, dword [esi + 0xc8]
add ecx, 7
and ecx, 0xfffffff8
cmp eax, 8
jl 0x50bbfd
mov edx, eax
shr edx, 3
imul edx, ecx
jmp 0x50bc08
imul ecx, eax
add ecx, 7
shr ecx, 3
mov edx, ecx
add eax, 7
sar eax, 3
lea eax, [eax + edx + 1]
lea edi, [eax + 0x40]
cmp edi, dword [esi + 0x280]
jbe 0x50bc46
mov eax, dword [esi + 0x250]
mov ecx, esi
call fcn.00508600
mov eax, edi
call fcn.00508590
mov dword [esi + 0x250], eax
add eax, 0x20
mov dword [esi + 0xec], eax
mov dword [esi + 0x280], edi
cmp dword [esi + 0xd8], 0xfffffffe
jbe 0x50bc5d
push esi
mov ecx, str.Row_has_too_many_bytes_to_allocate_in_memory.
call fcn.00507e90
add esp, 4
mov eax, dword [esi + 0xd8]
add eax, 1
cmp eax, dword [esi + 0x284]
jbe 0x50bc9e
mov eax, dword [esi + 0xe8]
mov ecx, esi
call fcn.00508600
mov eax, dword [esi + 0xd8]
add eax, 1
call fcn.00508590
mov dword [esi + 0xe8], eax
mov eax, dword [esi + 0xd8]
add eax, 1
mov dword [esi + 0x284], eax
mov ecx, dword [esi + 0xe8]
call fcn.00508690
or dword [esi + 0x6c], 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret