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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
push esi
mov esi, ecx
mov eax, ecx
sar esi, 1
sar eax, 2
mov edx, 6
push edi
mov dword [esp + 0x18], esi
lea edi, [edx + 0x3a]
test cl, 0x40
jne 0x5b144a
inc edx
rol edi, 1
test ecx, edi
je 0x5b1443
mov ecx, 0xd
sub ecx, edx
mov edx, 2
shl edx, cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
lea edi, [ecx + esi*4 - 0x1c]
add esi, eax
add eax, eax
push ebx
mov ebx, dword [esp + 0x3c]
add eax, eax
push ebp
lea ebp, [ebx + esi*4]
mov dword [esp + 0x2c], eax
add eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov esi, 0x769360
lea ebx, [edx*4]
mov dword [esp + 0x18], eax
mov edx, dword [esi + 4]
sub ebp, 0x10
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 0x10]
push ecx
call fcn.005b0640
mov eax, dword [esi + ebx + 4]
mov ecx, dword [esi + ebx]
lea edx, [ebp + 4]
push edx
mov edx, dword [edi + 8]
add esi, ebx
push ebp
push eax
mov eax, dword [edi]
push ecx
push edx
call fcn.005b0640
sub edi, 0x20
add esp, 0x28
add esi, ebx
cmp edi, dword [esp + 0x18]
jae 0x5b1491
mov edx, dword [esi]
sub ebp, 0x10
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 0x10]
push ecx
call fcn.005b0640
lea edx, [ebp + 4]
push edx
mov edx, dword [edi + 8]
sub esi, ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebp
push eax
mov eax, dword [edi]
push ecx
push edx
call fcn.005b0640
sub edi, 0x20
add esp, 0x28
sub esi, ebx
cmp edi, dword [esp + 0x3c]
jae 0x5b14d8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
lea edi, [eax + ecx*4 - 0x20]
mov esi, 0x769360
mov eax, dword [esi + ebx + 4]
mov ecx, dword [esi + ebx]
lea edx, [ebp + 4]
push edx
mov edx, dword [edi + 0x10]
add esi, ebx
push ebp
push eax
mov eax, dword [edi + 0x18]
push ecx
push edx
call fcn.005b06f0
mov edx, dword [esi + ebx + 4]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esi + ebx]
add esi, ebx
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi]
push edx
push eax
mov eax, dword [edi + 8]
push ecx
call fcn.005b06f0
sub edi, 0x20
add esp, 0x28
add ebp, 0x10
cmp edi, dword [esp + 0x18]
jae 0x5b1532
jmp 0x5b1580
lea edx, [ebp + 4]
push edx
mov edx, dword [edi + 0x10]
sub esi, ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebp
push eax
mov eax, dword [edi + 0x18]
push ecx
push edx
call fcn.005b06f0
lea eax, [ebp + 0xc]
push eax
sub esi, ebx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi]
push edx
push eax
mov eax, dword [edi + 8]
push ecx
call fcn.005b06f0
sub edi, 0x20
add esp, 0x28
add ebp, 0x10
cmp edi, dword [esp + 0x3c]
jae 0x5b1580
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
push esi
lea eax, [ebp + ecx*4]
push ecx
push eax
mov dword [esp + 0x3c], eax
call fcn.005b0f80
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
push esi
push ebp
mov ecx, ebx
call fcn.005b1060
mov esi, dword [esp + 0x30]
sar ebx, 2
mov eax, ebx
xor edx, edx
add esp, 0x14
sub eax, edx
mov edi, esi
je 0x5b1813
sub eax, 1
je 0x5b16e0
cmp ebx, 4
jl 0x5b1625
mov edx, ebx
sar edx, 1
lea ebp, [edx*4 + 0x769360]
jmp 0x5b162a
mov ebp, 0x76a368
lea eax, [ebx*4]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
add ebx, 0xc
lea esp, [esp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
push edi
sub esi, 0x10
lea ecx, [esi + 0xc]
push ecx
mov ecx, dword [ebx - 8]
push edx
push eax
mov eax, dword [ebx - 0xc]
neg ecx
push ecx
call fcn.005b0640
add ebp, dword [esp + 0x50]
lea edx, [edi + 4]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
lea eax, [esi + 8]
push eax
mov eax, dword [ebx]
push ecx
neg eax
push edx
push eax
mov eax, dword [ebx - 4]
call fcn.005b0640
add ebp, dword [esp + 0x64]
lea ecx, [edi + 8]
mov eax, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
lea edx, [esi + 4]
push edx
mov edx, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push ecx
neg edx
push edx
call fcn.005b0640
add ebp, dword [esp + 0x78]
lea eax, [edi + 0xc]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push eax
mov eax, dword [ebx + 0x10]
push esi
push ecx
neg eax
push edx
push eax
mov eax, dword [ebx + 0xc]
call fcn.005b0640
add ebp, dword [esp + 0x8c]
add ebx, 0x20
lea ecx, [ebx - 0xc]
add esp, 0x50
add edi, 0x10
cmp ecx, esi
jb 0x5b1640
jmp 0x5b192b
mov ebx, dword [esp + 0x40]
mov ebp, 0x76a368
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], 0x3fffffff
mov dword [esp + 0x3c], 0x769368
add ebx, 0xc
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
add ebp, 4
push edi
sub esi, 0x10
sar ecx, 1
lea edx, [esi + 0xc]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
add ecx, edx
mov edx, dword [ebx - 8]
sar eax, 1
push ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
add eax, ecx
push eax
mov eax, dword [ebx - 0xc]
neg edx
push edx
add ebp, 4
call fcn.005b0640
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
add ecx, 4
add ecx, 4
mov dword [esp + 0x50], ecx
lea ecx, [edi + 4]
push ecx
sar edx, 1
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esp + 0x30]
sar eax, 1
add ecx, edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x34]
add edx, eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
push ecx
neg eax
push edx
push eax
mov eax, dword [ebx - 4]
call fcn.005b0640
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [edi + 8]
push edx
add ebp, 4
sar ecx, 1
lea edx, [esi + 4]
push edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
add ecx, edx
mov edx, dword [ebx + 8]
sar eax, 1
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
add eax, ecx
push eax
mov eax, dword [ebx + 4]
neg edx
push edx
add ebp, 4
call fcn.005b0640
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
sar ecx, 1
sar edx, 1
add eax, 4
mov dword [esp + 0x74], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x78], eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [esp + 0x54]
add eax, edx
mov edx, dword [esp + 0x58]
push esi
push eax
mov eax, dword [ebx + 0x10]
add edx, ecx
neg eax
push edx
push eax
mov eax, dword [ebx + 0xc]
call fcn.005b0640
add ebx, 0x20
lea ecx, [ebx - 0xc]
add esp, 0x50
add edi, 0x10
cmp ecx, esi
jb 0x5b1700
jmp 0x5b192b
mov ecx, 0x76a368
mov dword [esp + 0x38], SysReAllocString
mov dword [esp + 0x3c], 0x769368
lea ebx, [ebp + 0xc]
jmp 0x5b1838
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [ecx]
mov eax, dword [ecx + 4]
add ecx, 4
mov dword [esp + 0x18], eax
sub eax, dword [esp + 0x38]
add ecx, 4
mov dword [esp + 0x28], ecx
sar eax, 2
push edi
sub esi, 0x10
lea ecx, [esi + 0xc]
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
add eax, ecx
mov dword [esp + 0x18], ebp
sub ebp, edx
push eax
mov eax, dword [ebx - 8]
sar ebp, 2
add edx, ebp
neg eax
push edx
push eax
mov eax, dword [ebx - 0xc]
call fcn.005b0640
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esi + 8]
push edx
mov edx, dword [ebx]
push eax
mov eax, dword [ebx - 4]
sub ecx, ebp
push ecx
neg edx
push edx
call fcn.005b0640
mov ecx, dword [esp + 0x64]
mov ebp, dword [ecx]
mov eax, dword [ecx + 4]
add ecx, 4
mov dword [esp + 0x60], eax
sub eax, dword [esp + 0x40]
add ecx, 4
lea edx, [edi + 8]
push edx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x3c]
sar eax, 2
lea edx, [esi + 4]
push edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], ebp
sub ebp, ecx
add eax, edx
push eax
sar ebp, 2
lea eax, [ecx + ebp]
mov ecx, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
neg ecx
push ecx
call fcn.005b0640
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
lea edx, [edi + 0xc]
push edx
mov edx, dword [ebx + 0x10]
push esi
push eax
sub ecx, ebp
push ecx
neg edx
push edx
mov eax, dword [ebx + 0xc]
call fcn.005b0640
add ebx, 0x20
lea eax, [ebx - 0xc]
add esp, 0x50
add edi, 0x10
cmp eax, esi
jb 0x5b1830
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + edx + 8]
mov edx, 2
sub edx, dword [esp + 0x20]
mov eax, edi
pop ebp
lea edx, [eax + edx*4]
pop ebx
jmp 0x5b1950
mov esi, dword [eax - 4]
mov dword [edx - 0xc], esi
sub eax, 0x10
neg esi
mov dword [ecx - 8], esi
mov esi, dword [eax + 8]
sub edx, 0x10
mov dword [edx], esi
neg esi
mov dword [ecx - 4], esi
mov esi, dword [eax + 4]
mov dword [edx - 4], esi
neg esi
mov dword [ecx], esi
mov esi, dword [eax]
mov dword [edx - 8], esi
neg esi
mov dword [ecx + 4], esi
add ecx, 0x10
lea esi, [ecx - 8]
cmp esi, eax
jb 0x5b1950
mov ecx, edi
mov eax, edi
pop edi
pop esi
nop
mov edx, dword [ecx + 0xc]
sub eax, 0x10
mov dword [eax], edx
mov edx, dword [ecx + 8]
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov edx, dword [ecx]
add ecx, 0x10
mov dword [eax + 0xc], edx
cmp eax, dword [esp + 0x20]
ja 0x5b1990
add esp, 0x24
ret