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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
imul eax, eax
push ebx
push ebp
push esi
push edi
cdq
mov edi, eax
mov ebx, edx
mov ecx, ebx
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
imul eax, eax
cdq
mov esi, eax
mov ebp, edx
mov ecx, ebp
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x2c], ecx
push dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
push dword [esp + 0x2c]
shld ecx, eax, 1
add eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
cdq
mov ecx, edx
mov dword [esp + 0x78], eax
push ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.00577cb0
shrd esi, ebp, 1
mov dword [esp + 0x6c], edx
mov ecx, eax
shld dword [esp + 0x6c], ecx, 1
sar ebp, 1
xorps xmm0, xmm0
add ecx, ecx
movlpd qword [esp + 0x54], xmm0
sub esi, eax
mov dword [esp + 0x18], ecx
movlpd qword [esp + 0x4c], xmm0
sbb ebp, edx
add esi, dword [esp + 0x44]
mov edx, dword [esp + 0x60]
adc ebp, dword [esp + 0x48]
shrd edi, ebx, 1
mov dword [esp + 0x30], esi
sar ebx, 1
sub edi, ecx
sbb ebx, dword [esp + 0x6c]
add edi, dword [esp + 0x28]
adc ebx, dword [esp + 0x2c]
test byte [edx + 0xd8], 4
je 0x5b4081
test ebx, ebx
jg 0x5b3f57
jl 0x5b3e28
test edi, edi
jae 0x5b3f57
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x70]
add esi, ecx
add eax, dword [esp + 0x64]
push esi
push eax
push edx
mov dword [esp + 0x58], eax
call fcn.005b2f59
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x7c]
push esi
push eax
push dword [esp + 0x74]
mov dword [esp + 0x6c], eax
call fcn.005b2f59
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, ecx
or eax, dword [esp + 0x20]
je 0x5b3eb1
mov esi, dword [esp + 0x68]
sub esi, ecx
push esi
push dword [esp + 0x50]
push dword [esp + 0x68]
call fcn.005b2f59
push esi
push dword [esp + 0x64]
push dword [esp + 0x74]
call fcn.005b2f59
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov esi, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x24]
adc dword [esp + 0x20], 0
add esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
adc eax, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
test ebp, ebp
jg 0x5b3ee9
jl 0x5b3ee3
test edx, edx
jae 0x5b3ee9
add edi, esi
adc ebx, eax
jmp 0x5b3f2f
add dword [esp + 0x70], 0xffffffff
mov esi, dword [esp + 0x18]
adc dword [esp + 0x10], 0xffffffff
sub esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sbb dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov dword [esp + 0x18], esi
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x28]
adc eax, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x14]
adc ebx, eax
mov eax, dword [esp + 0x24]
sub edx, esi
mov esi, dword [esp + 0x1c]
sbb ebp, dword [esp + 0x6c]
add edx, esi
adc ebp, eax
add edx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
adc ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
test ebx, ebx
jl 0x5b3e48
jg 0x5b3f77
test edi, edi
jb 0x5b3e48
jmp 0x5b3f77
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
add eax, ecx
push eax
add esi, ebp
mov dword [esp + 0x74], eax
push esi
push edx
call fcn.005b2f59
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x20]
push eax
push esi
push dword [esp + 0x74]
mov dword [esp + 0x6c], eax
call fcn.005b2f59
mov esi, dword [esp + 0x28]
mov eax, ebp
add esp, 0x18
or eax, esi
je 0x5b3fe0
mov esi, dword [esp + 0x64]
push dword [esp + 0x70]
sub esi, ebp
push esi
push dword [esp + 0x68]
call fcn.005b2f59
push dword [esp + 0x60]
push esi
push dword [esp + 0x74]
call fcn.005b2f59
mov esi, dword [esp + 0x28]
add esp, 0x18
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
mov ecx, dword [esp + 0x6c]
mov edx, edi
adc esi, 0xffffffff
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sbb ecx, dword [esp + 0x38]
sub edx, eax
mov eax, ebx
mov dword [esp + 0x10], esi
sbb eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], eax
test ebx, ebx
jg 0x5b4052
jl 0x5b401c
test edi, edi
jae 0x5b4052
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x24]
adc dword [esp + 0x20], 0
add edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x70]
adc eax, dword [esp + 0x40]
add edi, edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
adc ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
jmp 0x5b405a
mov ecx, dword [esp + 0x14]
mov edi, edx
mov ebx, eax
add edi, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
adc ebx, dword [esp + 0x2c]
test esi, esi
jg 0x5b3f7b
jl 0x5b430d
test ebp, ebp
jae 0x5b3f7b
jmp 0x5b430d
test ebx, ebx
jg 0x5b42be
jl 0x5b4093
test edi, edi
jae 0x5b42be
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
lea eax, [edx*2 + 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
sub eax, edx
mov dword [esp + 0x30], eax
lea eax, [edx*2 + 1]
push eax
mov eax, dword [esp + 0x6c]
add eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.005b2a7a
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, ecx
or eax, dword [esp + 0x24]
je 0x5b4116
push dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
sub eax, ecx
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call fcn.005b2a7a
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x20]
adc dword [esp + 0x24], 0
add edx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
adc eax, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
test ebp, ebp
jg 0x5b414e
jl 0x5b4144
test esi, esi
jae 0x5b414e
add edi, edx
mov edx, dword [esp + 0x70]
adc ebx, eax
jmp 0x5b419c
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
add edx, 0xffffffff
mov ecx, dword [esp + 0x38]
adc dword [esp + 0x10], 0xffffffff
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sbb dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x6c]
add ecx, dword [esp + 0x28]
adc eax, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x14]
adc ebx, eax
sub esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
sbb ebp, dword [esp + 0x6c]
add esi, dword [esp + 0x1c]
adc ebp, eax
add esi, dword [esp + 0x44]
adc ebp, dword [esp + 0x48]
test ebx, ebx
jl 0x5b40b7
jg 0x5b41bc
test edi, edi
jb 0x5b40b7
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov esi, ecx
mov ebp, dword [esp + 0x70]
add eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
sub ecx, esi
mov esi, dword [esp + 0x64]
inc ecx
add esi, ebp
push ecx
push dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
push esi
push edx
call fcn.005b33bf
push dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x28]
push eax
push esi
push dword [esp + 0x7c]
mov dword [esp + 0x74], eax
call fcn.005b33bf
mov esi, dword [esp + 0x30]
mov eax, ebp
add esp, 0x20
or eax, esi
je 0x5b424c
push dword [esp + 0x70]
mov esi, dword [esp + 0x68]
push dword [esp + 0x4c]
sub esi, ebp
push esi
push dword [esp + 0x6c]
call fcn.005b33bf
push dword [esp + 0x80]
push dword [esp + 0x68]
push esi
push dword [esp + 0x7c]
call fcn.005b33bf
mov esi, dword [esp + 0x30]
add esp, 0x20
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
mov ecx, dword [esp + 0x6c]
mov edx, edi
adc esi, 0xffffffff
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sbb ecx, dword [esp + 0x38]
sub edx, eax
mov eax, ebx
mov dword [esp + 0x10], esi
sbb eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], eax
test ebx, ebx
jg 0x5b42e3
jl 0x5b4288
test edi, edi
jae 0x5b42e3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, 1
mov eax, dword [esp + 0x20]
adc dword [esp + 0x24], 0
add edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x70]
adc eax, dword [esp + 0x40]
add edi, edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
adc ebx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x5b42eb
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jmp 0x5b41c0
mov ecx, dword [esp + 0x14]
mov edi, edx
mov ebx, eax
add edi, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
adc ebx, dword [esp + 0x2c]
test esi, esi
mov esi, dword [esp + 0x44]
jg 0x5b41d4
jl 0x5b430d
test ebp, ebp
jae 0x5b41d4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x14