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

Disassembly:
sub esp, 0x1bc
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push esi
mov esi, dword [esp + 0x1c4]
mov eax, dword [esi + 0x58]
cmp eax, 2
jge 0x5b4a7f
mov eax, 0xffffff7d
pop esi
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0069528d
add esp, 0x1bc
ret
cmp dword [esi + 4], 0
jne 0x5b4aa0
mov eax, 0xffffff76
pop esi
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0069528d
add esp, 0x1bc
ret
push ebx
mov ebx, dword [esp + 0x1d0]
push edi
test ebx, ebx
jl 0x5b4e7a
mov edi, dword [esp + 0x1d0]
jg 0x5b4ac2
test edi, edi
jb 0x5b4e7a
cmp ebx, dword [esi + 0x14]
jg 0x5b4e7a
jl 0x5b4ad6
cmp edi, dword [esi + 0x10]
ja 0x5b4e7a
cmp eax, 3
jl 0x5b4b01
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x38]
cmp ebx, dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
jl 0x5b4afc
jg 0x5b4af0
cmp edi, dword [eax]
jb 0x5b4afc
cmp ebx, dword [eax + 0xc]
jl 0x5b4b01
jg 0x5b4afc
cmp edi, dword [eax + 8]
jb 0x5b4b01
call fcn.005b4320
mov edx, dword [esi + 0x5c]
push ebp
lea eax, [esi + 0x78]
push edx
or ebp, 0xffffffff
push eax
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
call fcn.005b8410
lea eax, [esi + 0x1e0]
push eax
call fcn.005acbe0
push ebx
push edi
mov eax, esi
call fcn.005b33b0
add esp, 0x14
test eax, eax
je 0x5b4b6a
lea ecx, [esp + 0x60]
push ecx
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
call fcn.005b75e0
add esp, 4
call fcn.005b4320
mov eax, 0xffffff77
pop ebp
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0069528d
add esp, 0x1bc
ret
mov edx, dword [esi + 0x5c]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x64]
push eax
call fcn.005b85e0
lea ecx, [esp + 0x68]
push ecx
call fcn.005b83b0
add esp, 0xc
jmp 0x5b4ba0
cmp dword [esi + 0x58], 3
jl 0x5b4c59
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.005b8550
add esp, 8
test eax, eax
jle 0x5b4c59
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x48]
shl ecx, 5
cmp dword [ecx + edx + 0x1c], 0
lea eax, [ecx + edx]
je 0x5b4c4b
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.005b3290
mov ebp, eax
add esp, 8
test ebp, ebp
jge 0x5b4bfd
lea eax, [esi + 0x78]
push 0
push eax
call fcn.005b8550
add esp, 8
xor ebp, ebp
jmp 0x5b4c2d
cmp dword [esp + 0x20], 0
je 0x5b4c1b
cmp dword [esp + 0x18], 0
jne 0x5b4c1b
lea eax, [esi + 0x78]
push 0
push eax
call fcn.005b8550
add esp, 8
jmp 0x5b4c2d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5b4c2d
lea edx, [eax + ebp]
sar edx, 2
add dword [esp + 0x24], edx
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov eax, edi
and eax, ebx
cmp eax, 0xffffffff
jne 0x5b4d82
mov dword [esp + 0x10], ebp
jmp 0x5b4ba0
lea eax, [esi + 0x78]
push 0
push eax
call fcn.005b8550
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x5b4e51
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
push ecx
call fcn.005b3410
mov ebp, edx
add esp, 0xc
mov dword [esp + 0x38], eax
test ebp, ebp
jl 0x5b4e41
jg 0x5b4c8d
test eax, eax
jb 0x5b4e41
mov edi, 3
cmp dword [esi + 0x58], edi
jl 0x5b4cd1
lea edx, [esp + 0x28]
push edx
call fcn.005b7530
add esp, 4
cmp dword [esi + 0x5c], eax
je 0x5b4ccc
lea eax, [esp + 0x28]
push eax
call fcn.005b7480
add esp, 4
test eax, eax
je 0x5b4ccc
call fcn.005b4320
lea ecx, [esp + 0x60]
push ecx
call fcn.005b75e0
add esp, 4
cmp dword [esi + 0x58], edi
jge 0x5b4d4f
lea edx, [esp + 0x28]
push edx
call fcn.005b7530
mov ecx, dword [esi + 0x34]
add esp, 4
xor edi, edi
mov ebx, eax
test ecx, ecx
jle 0x5b4cfc
mov eax, dword [esi + 0x40]
lea esp, [esp]
cmp dword [eax], ebx
je 0x5b4cfc
inc edi
add eax, 4
cmp edi, ecx
jl 0x5b4cf0
cmp edi, ecx
je 0x5b4ba0
lea eax, [esi + 0x78]
push ebx
push eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], ebx
call fcn.005b8410
lea eax, [esp + 0x68]
push ebx
push eax
call fcn.005b8410
mov eax, dword [esi + 0x3c]
add esp, 0x10
mov dword [esi + 0x58], 3
cmp ebp, dword [eax + edi*8 + 4]
jg 0x5b4d47
jl 0x5b4d3d
mov ecx, dword [esp + 0x38]
cmp ecx, dword [eax + edi*8]
ja 0x5b4d47
mov dword [esp + 0x18], 1
jmp 0x5b4d4f
mov dword [esp + 0x18], 0
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 0x78]
push eax
call fcn.005b8060
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.005b8060
lea edx, [esp + 0x38]
push edx
call fcn.005b7490
add esp, 0x14
mov dword [esp + 0x20], eax
jmp 0x5b4ba0
mov edx, dword [esi + 0x60]
mov ebp, dword [esi + 0x44]
mov ecx, edx
shl ecx, 4
sub edi, dword [ecx + ebp]
sbb ebx, dword [ecx + ebp + 4]
xor ecx, ecx
cmp ebx, ecx
mov eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jg 0x5b4db4
jl 0x5b4daa
cmp eax, ecx
jae 0x5b4db4
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
xor edi, edi
xor eax, eax
cmp edx, 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
jl 0x5b4dfc
add edx, 0xfffffffe
shr edx, 1
inc edx
lea ebx, [edx + edx]
lea eax, [ebp + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [eax - 0x10]
add dword [esp + 0x18], ebx
mov ebx, dword [eax - 0xc]
adc dword [esp + 0x1c], ebx
mov ebx, dword [eax]
add ecx, ebx
mov ebx, dword [eax + 4]
adc edi, ebx
add eax, 0x20
sub edx, 1
jne 0x5b4dd5
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x60]
jge 0x5b4e16
shl eax, 4
mov edx, ebp
mov edx, dword [eax + edx + 8]
add dword [esp + 0x10], edx
mov edx, ebp
mov eax, dword [eax + edx + 0xc]
adc ebx, eax
mov eax, dword [esp + 0x24]
cdq
sub ecx, eax
sbb edi, edx
add ecx, dword [esp + 0x18]
adc edi, dword [esp + 0x1c]
add ecx, dword [esp + 0x10]
adc edi, ebx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
test edi, edi
jg 0x5b4e5a
jl 0x5b4e3d
test ecx, ecx
jae 0x5b4e5a
xor eax, eax
jmp 0x5b4e54
push 0xffffffffffffffff
push esi
call fcn.005b4930
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x5b4e57
or eax, 0xffffffff
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
lea ecx, [esp + 0x60]
push ecx
call fcn.005b75e0
add esp, 4
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
jmp 0x5b4b51
mov ecx, dword [esp + 0x1c4]
pop edi
pop ebx
pop esi
xor ecx, esp
mov eax, 0xffffff7d
call fcn.0069528d
add esp, 0x1bc
ret