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

Disassembly:
sub esp, 0x924
mov eax, dword [0x93e25c]
mov edx, dword [esp + 0x938]
push ebp
push esi
mov esi, dword [esp + 0x930]
mov ecx, dword [esi]
mov ebp, dword [esi + 0x64]
mov byte [esi + 0x1dc], 1
mov dl, byte [edx]
test dl, dl
mov dword [esp + 0x928], eax
mov eax, dword [esp + 0x944]
push edi
mov dword [esp + 0x24], eax
jns 0x5bbf5c
mov eax, dword [ecx + 0x114]
mov dword [esp + 0x10], eax
jmp 0x5bbf64
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x938]
add eax, 2
mov dword [esp + 0x1c], eax
movzx ax, byte [edi]
movzx di, byte [edi + 1]
shl eax, 8
add eax, edi
movzx di, dl
mov edx, dword [esp + 0x944]
movzx dx, byte [edx + 1]
and eax, 0x7fff
mov dword [esp + 0x18], eax
shl edi, 8
add edi, edx
mov edx, dword [ecx + 0x114]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xf0]
imul edx, edx, 0x3c
add edx, dword [ecx + 0x18c]
and edi, 0x7fff
cmp edx, ebx
mov dword [esp + 0x40], edi
jne 0x5bbfd0
mov byte [esi + 0x1db], 1
mov edx, dword [esp + 0x938]
mov ecx, dword [esp + 0x948]
add eax, edx
cmp ecx, eax
mov dword [esp + 0x30], eax
jae 0x5bbff0
mov eax, dword [esi + 4]
test byte [eax], 1
jne 0x5bc004
mov eax, dword [esp + 0x14]
lea eax, [eax + edx + 2]
cmp ecx, eax
mov dword [esp + 0x34], eax
jne 0x5bc4dd
test byte [ebx + 6], 0x20
je 0x5bc02a
lea eax, [esp + 0xc]
push eax
push ecx
push ebp
push edx
push ebx
push esi
call fcn.005cabd0
add esp, 0x18
test eax, eax
mov dword [esp + 0x24], eax
je 0x5bc96b
jmp 0x5bc050
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x28]
push ecx
push edx
push ebx
mov byte [ebp + 1], 0
mov byte [ebp], 0
call dword [ebx + 0x28]
add esp, 0x10
test eax, eax
je 0x5bc96b
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.005c9f10
push 0
push ebp
push 3
push edx
push eax
push ebx
push esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
call fcn.005cd970
add esp, 0x24
test eax, eax
je 0x5bc96b
movzx si, byte [ebp]
movzx cx, byte [ebp + 1]
mov edx, dword [esp + 0x24]
lea eax, [ebp + 2]
shl esi, 8
add esi, ecx
mov ecx, dword [esp + 0x14]
push ecx
push eax
sub edx, ecx
push edx
and esi, 0x7fff
call fcn.006cfd80
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x948]
push ecx
mov ecx, dword [esp + 0x948]
lea edx, [esp + 0x4e8]
push edx
push eax
push ebx
push ecx
call fcn.005cad40
add esp, 0x24
test eax, eax
je 0x5bc96b
mov eax, dword [esp + 0x944]
lea edx, [esp + 0xc]
push edx
lea ecx, [edi + eax]
push ecx
lea edx, [esp + 0x84]
push edx
push eax
mov eax, dword [esp + 0x944]
push ebx
push eax
call fcn.005cad40
add esp, 0x18
test eax, eax
je 0x5bc96b
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp edi, ecx
sete al
lea edx, [esp + 0x7c]
add ecx, ebp
dec eax
and eax, edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4d8]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push ebx
call dword [ebx + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, esi
sub ecx, edx
add eax, ecx
push ecx
add eax, edi
add eax, ebp
add esi, ebp
push esi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], eax
call fcn.0062f1c0
mov esi, dword [esp + 0x96c]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x74]
push eax
add ecx, ebp
push ecx
push ebx
call dword [ebx + 0x30]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub eax, ebp
mov ecx, dword [esp + 0x97c]
mov esi, eax
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
neg eax
sbb eax, eax
and eax, 0x8000
mov dword [esp + 0x54], eax
add eax, esi
movzx eax, ax
mov byte [ebp + 1], al
shr eax, 8
mov byte [ebp], al
push edx
lea eax, [esp + 0x50c]
push eax
push ecx
push ebx
xor eax, eax
mov ecx, edi
call fcn.005bbbd0
add esp, 0x44
test eax, eax
je 0x5bc96b
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x938]
sub edx, eax
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x8000
mov dword [esp + 0x30], eax
add eax, edx
movzx eax, ax
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx], al
movzx eax, word [ebx + 0xa]
cmp esi, eax
mov dword [esp + 0x18], edx
ja 0x5bc24e
mov edi, dword [esp + 0x944]
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x938]
push eax
push ecx
push ebx
push esi
call fcn.005cdb50
add esp, 0x14
test eax, eax
jne 0x5bc96b
jmp 0x5bc495
mov eax, dword [esp + 0x948]
lea edi, [edi + ecx + 2]
add edx, ecx
cmp eax, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edi
je 0x5bc28f
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x4dc]
push eax
push ecx
mov ecx, dword [esp + 0x944]
push ebx
push ecx
call fcn.005cad40
add esp, 0x18
test eax, eax
je 0x5bc96b
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebp
push ebx
push edx
call fcn.005af070
add esp, 0x18
test eax, eax
mov dword [esp + 0x28], eax
je 0x5bc96b
mov edi, dword [esp + 0x944]
sub eax, ebp
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov dword [esp + 0xc], eax
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x944]
movzx eax, ax
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x93c]
lea eax, [esp + edx + 0x84]
push eax
push ecx
call fcn.005ca080
mov esi, dword [esp + 0x958]
mov edx, dword [esp + 0x44]
xor eax, eax
cmp esi, edx
sete al
lea edx, [esp + 0x4e4]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x40]
dec eax
and eax, edx
lea edx, [esp + 0x90]
push edx
push eax
push eax
xor eax, eax
cmp esi, ecx
mov ecx, dword [esp + 0x34]
sete al
dec eax
and eax, esi
push eax
push ecx
push ebx
call dword [ebx + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x58]
add esp, 0x2c
test edi, edi
jl 0x5bc37e
mov edx, eax
sub edx, esi
push edx
push eax
add eax, edi
push eax
call fcn.0062f1c0
jmp 0x5bc38e
sub eax, esi
add eax, edi
push eax
mov eax, esi
sub eax, edi
push eax
push esi
call fcn.006cfd80
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push esi
push ebx
call dword [ebx + 0x30]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x944]
mov esi, dword [esp + 0x1c]
add eax, edi
add edx, eax
mov dword [esp + 0x24], eax
movzx eax, dx
mov byte [ecx + 1], al
shr eax, 8
add esp, 0xc
test esi, esi
mov byte [ecx], al
je 0x5bc3dc
mov eax, dword [esp + 0x28]
sub eax, esi
push esi
push eax
lea eax, [ebp + 2]
push eax
call fcn.006cfd80
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push ebx
call dword [ebx + 0x28]
add esp, 0x10
test eax, eax
je 0x5bc96b
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x80]
push ecx
push 0
push 0
push 0
push esi
push ebx
call dword [ebx + 0x2c]
movzx dx, byte [ebp + 1]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov edi, eax
movzx ax, byte [ebp]
shl eax, 8
add eax, edx
and eax, 0x7fff
sub eax, ecx
add eax, ebp
push eax
mov dword [esp + 0x2c], eax
lea eax, [edi + esi]
push ecx
add eax, ebp
push eax
call fcn.006cfd80
lea ecx, [esp + 0x74]
push ecx
lea eax, [esi + ebp]
push eax
push ebx
call dword [ebx + 0x30]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x968]
add esi, edi
mov edi, dword [esp + 0x54]
add esi, eax
add esi, edi
movzx eax, si
push ebp
mov byte [ebp + 1], al
shr eax, 8
push 3
push edx
mov byte [ebp], al
mov eax, dword [esp + 0x78]
push eax
push ebx
push ecx
call fcn.005cda40
add esp, 0x4c
test eax, eax
jne 0x5bc96b
mov esi, dword [esp + 0x934]
mov edx, dword [esp + 0x944]
mov eax, dword [esp + 0x940]
mov ecx, dword [esp + 0x93c]
push edx
push 3
push eax
push ecx
push ebx
push esi
call fcn.005cda40
add esp, 0x18
test eax, eax
jne 0x5bc96b
mov al, byte [esi + 0x1da]
test al, al
mov eax, 0x14
jne 0x5bc98a
movzx eax, word [ebx + 0xc]
jmp 0x5bc98a
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x4dc]
push ecx
push edx
push ebx
push esi
call fcn.005cad40
add esp, 0x18
test eax, eax
mov dword [esp + 0x948], eax
je 0x5bc96b
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.005c9f10
push 0
push ebp
push 3
push edx
push eax
push ebx
push esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
call fcn.005cd970
add esp, 0x24
test eax, eax
je 0x5bc96b
movzx si, byte [ebp]
movzx ax, byte [ebp + 1]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
shl esi, 8
sub edx, ecx
add esi, eax
mov eax, dword [esp + 0x948]
add eax, 2
push eax
push edx
and esi, 0x7fff
call fcn.006cfd80
mov eax, dword [esp + 0x954]
lea ecx, [esp + 0x4e0]
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ebx
call dword [ebx + 0x28]
add esp, 0x1c
test eax, eax
je 0x5bc96b
lea ecx, [esp + 0xc]
push ecx
lea eax, [esi + ebp]
push eax
mov eax, dword [esp + 0x93c]
lea edx, [esp + 0x84]
push edx
push ebp
push ebx
push eax
call fcn.005cad40
add esp, 0x18
test eax, eax
je 0x5bc96b
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp edi, ecx
sete al
lea edx, [esp + 0x7c]
dec eax
and eax, edx
cmp edi, ecx
jne 0x5bc5d3
xor ecx, ecx
jmp 0x5bc5dc
mov edx, dword [esp + 0x944]
add ecx, edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x4d8]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push ebx
call dword [ebx + 0x2c]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
test eax, eax
mov dword [esp + 0x20], eax
jl 0x5bc61b
mov edx, edi
sub edx, ecx
push edx
mov edx, dword [esp + 0x948]
add ecx, edx
push ecx
lea ecx, [esi + ebp]
add ecx, eax
push ecx
jmp 0x5bc632
mov edx, eax
sub edx, ecx
sub ecx, eax
mov eax, dword [esp + 0x944]
add edx, edi
push edx
add ecx, eax
push ecx
lea eax, [esi + ebp]
push eax
call fcn.006cfd80
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea eax, [esi + ebp]
push eax
push ebx
call dword [ebx + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
sub eax, ecx
add eax, edi
mov edi, dword [esp + 0x1c]
add esi, eax
neg edi
sbb edi, edi
and edi, 0x8000
lea ecx, [edi + esi]
movzx eax, cx
mov ecx, dword [esp + 0x954]
mov byte [ebp + 1], al
shr eax, 8
mov byte [ebp], al
push edx
lea eax, [esp + 0x4e4]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
xor eax, eax
call fcn.005bbbd0
add esp, 0x1c
test eax, eax
je 0x5bc96b
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0x8000
mov dword [esp + 0x30], eax
add eax, ecx
movzx eax, ax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x938]
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx], al
movzx edx, word [ebx + 0xa]
cmp esi, edx
ja 0x5bc705
mov eax, dword [esp + 0x940]
mov ecx, dword [esp + 0x93c]
mov edx, dword [esp + 0x934]
push 3
push eax
push ecx
push ebx
push edx
call fcn.005cdb50
add esp, 0x14
test eax, eax
jne 0x5bc96b
jmp 0x5bc949
mov eax, dword [esp + 0x948]
cmp eax, dword [esp + 0x34]
jne 0x5bc71c
mov dword [esp + 0x34], 0
jmp 0x5bc74f
lea edx, [esp + 0x4d4]
mov dword [esp + 0x34], edx
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x4dc]
push eax
push ecx
mov ecx, dword [esp + 0x944]
push ebx
push ecx
call fcn.005cad40
add esp, 0x18
test eax, eax
je 0x5bc96b
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebp
push ebx
push edx
call fcn.005af070
add esp, 0x18
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5bc96b
mov eax, dword [esp + 0x940]
mov ecx, dword [esp + 0x93c]
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x93c]
lea eax, [esp + edx + 0x84]
push eax
push ecx
call fcn.005ca080
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x948]
add eax, edx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x90]
push edx
push ecx
push ecx
mov ecx, dword [esp + 0x968]
xor edx, edx
cmp ecx, eax
sete dl
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
dec edx
and edx, ecx
push edx
push eax
push ebx
call dword [ebx + 0x2c]
mov ecx, dword [esp + 0x6c]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x20], eax
jle 0x5bc808
mov edx, ecx
sub edx, dword [esp + 0x948]
push edx
push ecx
add ecx, eax
push ecx
call fcn.0062f1c0
jmp 0x5bc81f
mov edx, dword [esp + 0x948]
sub ecx, edx
add ecx, eax
push ecx
mov ecx, edx
sub ecx, eax
push ecx
push edx
call fcn.006cfd80
mov eax, dword [esp + 0x954]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push eax
push ebx
call dword [ebx + 0x30]
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x24], eax
movzx eax, cx
mov ecx, dword [esp + 0x944]
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5bc881
mov edx, dword [esp + 0x28]
push eax
sub edx, eax
mov eax, dword [esp + 0x948]
push edx
add eax, 2
push eax
call fcn.006cfd80
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push ebx
call dword [ebx + 0x28]
add esp, 0x10
test eax, eax
mov dword [esp + 0xc], eax
je 0x5bc96b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x80]
push ecx
push 0
push 0
push 0
push edx
push ebx
call dword [ebx + 0x2c]
mov ecx, dword [esp + 0x44]
sub esi, ecx
add esi, ebp
push esi
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x968]
add eax, ecx
add eax, esi
push eax
call fcn.006cfd80
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x74]
push edx
add eax, esi
push eax
push ebx
call dword [ebx + 0x30]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
add edx, ecx
add edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x970]
add edx, edi
movzx eax, dx
mov edx, dword [esp + 0x968]
mov byte [esi + 1], al
push esi
shr eax, 8
push 3
mov byte [esi], al
mov eax, dword [esp + 0x97c]
push eax
push ecx
push ebx
push edx
call fcn.005cda40
add esp, 0x4c
test eax, eax
jne 0x5bc96b
mov eax, dword [esp + 0x2c]
sub eax, ebp
add eax, edi
movzx eax, ax
mov byte [ebp + 1], al
shr eax, 8
mov byte [ebp], al
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x934]
push ebp
push 3
push eax
push ecx
push ebx
push edx
call fcn.005cda40
add esp, 0x18
test eax, eax
je 0x5bc984
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x920]
call fcn.006cedd0
add esp, 0x924
ret
movzx eax, word [ebx + 0xa]
shr eax, 1
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x92c]
cmp eax, edx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebp
call fcn.006cedd0
add esp, 0x924
ret