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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov ebx, edx
mov eax, ecx
xor edx, edx
mov dword [esp + 0x30], ebx
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
push esi
push edi
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], dx
je 0x5b8ca8f
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
je 0x5b8ca8f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x5b8ca86
movzx esi, ax
xor ecx, ecx
xor ebx, ebx
mov edi, dword [esp + 0x7c]
mov eax, esi
movlpd qword [esp + 0x58], xmm0
bts ecx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x1c], 1
mov dword [esp + 0x30], esi
cmovae ebx, ecx
mov dword [esp + 0x3c], edx
xor ecx, ebx
mov dword [esp + 0x10], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, ecx
add ecx, 0xffffffff
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x78]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x1c]
neg eax
mov dword [esp + 0x18], ecx
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
cmp edi, eax
ja 0x5b8d2f6
jb 0x5b8cb4e
cmp ecx, dword [esp + 0x84]
jae 0x5b8d2fd
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x5b8d2f2
cmp dword [esp + 0x3c], 0
jle 0x5b8cb7d
mov esi, dword [esp + 0x64]
or esi, dword [edx + 8]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x68]
or esi, dword [edx + 0xc]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jge 0x5b8cba2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
test eax, 0x800
jne 0x5b8d2d2
jmp 0x5b8cbac
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
test dword [edx + 0x2c], 0x400
jne 0x5b8d2e0
and eax, 0x80
mov dword [esp + 0x58], eax
je 0x5b8cbca
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ecx
test esi, esi
jle 0x5b8cd7c
mov eax, dword [esp + 0x38]
add eax, 8
mov dword [esp + 0xc], eax
mov esi, eax
nop dword [eax + eax]
mov eax, ecx
xor edx, edx
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x50], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x4c], edx
and eax, edi
or ecx, eax
jne 0x5b8cd5e
mov esi, dword [esi]
test esi, esi
je 0x5b8cd5a
nop dword [eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x5b8cc65
test eax, 0x80000
je 0x5b8cc59
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x5b8cc5c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x5b8cc40
jmp 0x5b8cd5a
test esi, esi
je 0x5b8cd5a
mov al, byte [esi]
cmp al, 0xa7
je 0x5b8cc7b
cmp al, 0xa9
jne 0x5b8cd5a
cmp dword [esi + 0x1c], ebx
jne 0x5b8cd5a
mov eax, dword [esp + 0x80]
mov edx, ebx
mov ecx, dword [esp + 0x64]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x70]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea ecx, [ecx + 0x50]
call fcn.05b931b0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x5b8cd56
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x5b8ccf0
mov eax, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
jle 0x5b8ccec
mov eax, dword [eax + 0x38]
nop dword [eax]
cmp edi, dword [eax]
je 0x5b8ccec
inc ecx
add eax, 4
cmp ecx, edx
jl 0x5b8cce0
cmp ecx, edx
jge 0x5b8cd52
test bl, 0x82
je 0x5b8cd34
cmp word [esi + 0x20], 0
jl 0x5b8cd34
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.05be1b30
mov ebx, eax
test ebx, ebx
jne 0x5b8cd1a
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.05be1900
test eax, eax
je 0x5b8cd52
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.05c1c500
test eax, eax
jne 0x5b8cd52
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
or eax, dword [esp + 0x50]
or edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jmp 0x5b8cd5a
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
add esi, 0x14
inc ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x30]
jl 0x5b8cc00
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x2c]
test eax, 0x1000
jne 0x5b8d146
test eax, 0x100
je 0x5b8cda8
mov dword [esp + 0x2c], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x5b8cde8
mov edx, dword [edx + 0x20]
mov dword [esp + 0x2c], edx
test edx, edx
je 0x5b8ca86
test byte [edx + 0x38], 4
jne 0x5b8ca86
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x5b8cddf
mov byte [esp + 0x1c], 1
test eax, 0x8000
je 0x5b8cde4
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x24]
xor al, al
xor esi, esi
mov byte [esp + 0x23], al
mov byte [esp + 0x22], al
mov dword [esp + 0x28], eax
movzx eax, cx
mov dword [esp + 0xc], esi
mov dword [esp + 0x78], eax
test eax, eax
jle 0x5b8d146
mov dword [esp + 0x4c], esi
nop
movzx ebx, word [edx + 0x18]
mov byte [esp + 0x21], 1
cmp esi, ebx
jge 0x5b8ce8b
movzx eax, word [edx + 0x32]
cmp esi, eax
jl 0x5b8ce8b
mov edi, dword [edx + 0x38]
mov eax, dword [esp + 0x80]
mov esi, dword [edi + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x5b8ce5b
mov ebx, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, bl
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x5b8d129
test cl, 1
je 0x5b8ce87
mov ecx, dword [esp + 0xc]
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x5b8ce87
inc ecx
lea ecx, [edi + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x5b8ce81
inc edx
add ecx, 4
cmp edx, ebx
jl 0x5b8ce71
jmp 0x5b8ce87
xor al, al
mov byte [esp + 0x21], al
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x5b8ceb8
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x40], edx
mov cl, byte [esi + eax]
mov eax, dword [edi + 0xc]
and cl, 1
mov byte [esp + 0x17], cl
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x5b8cec4
jmp 0x5b8cebd
mov byte [esp + 0x17], 0
or edx, 0xffffffff
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x1c]
test al, al
je 0x5b8cefd
test edx, edx
js 0x5b8ceee
cmp esi, ebx
jl 0x5b8ceee
mov eax, dword [edi + 0xc]
mov ecx, edx
mov ebx, dword [esp + 0x1c]
add ecx, ecx
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 4]
and al, 0xf
neg al
sbb al, al
and al, bl
xor ecx, ecx
movzx eax, al
cmp edx, 0xfffffffe
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov bh, byte [esp + 0x21]
xor edi, edi
test bh, bh
je 0x5b8d026
mov esi, dword [esp + 0x38]
add esi, 8
mov dword [esp + 0x6c], esi
cmp edi, dword [esp + 0x30]
jge 0x5b8d026
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x18]
and ecx, dword [esp + 0x10]
or edx, ecx
jne 0x5b8d016
mov ecx, dword [esi]
test ecx, ecx
je 0x5b8d016
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x5b8cf76
test eax, 0x80000
je 0x5b8cf6a
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
jmp 0x5b8cf6d
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x5b8cf51
jmp 0x5b8d016
test ecx, ecx
je 0x5b8d016
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x40]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp edx, 0xffffffff
jl 0x5b8cfb3
mov al, byte [ecx]
cmp al, 0xa7
je 0x5b8cf9e
cmp al, 0xa9
jne 0x5b8d016
mov eax, dword [esp + 0x34]
mov bh, bl
cmp dword [ecx + 0x1c], eax
jne 0x5b8d016
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x5b8d016
jmp 0x5b8cfd6
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
push dword [esp + 0x34]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 8]
call fcn.05bd9150
add esp, 4
test eax, eax
jne 0x5b8d016
mov edx, dword [esp + 0x40]
cmp edx, 0xffffffff
je 0x5b8d054
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.05be1b30
test eax, eax
jne 0x5b8cff7
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x2c]
mov bh, bl
mov esi, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.05c1c500
test eax, eax
je 0x5b8d058
mov esi, dword [esp + 0x6c]
add esi, 0x14
inc edi
mov dword [esp + 0x6c], esi
test bh, bh
jne 0x5b8cf16
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5b8d039
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x5b8d03e
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
test al, al
je 0x5b8d146
mov byte [esp + 0x1c], 1
jmp 0x5b8d152
mov esi, dword [esp + 0xc]
cmp word [esp + 0x58], 0
mov ebx, dword [esp + 0x24]
je 0x5b8d06b
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x5b8d0cf
cmp byte [esp + 0x23], 0
lea eax, [edi + edi*4]
mov ecx, dword [esp + 0x38]
je 0x5b8d098
mov al, byte [ecx + eax*4 + 0x10]
mov cl, byte [esp + 0x17]
and al, 1
xor cl, byte [esp + 0x22]
cmp cl, al
sete al
test al, al
je 0x5b8d026
jmp 0x5b8d0cf
mov dl, byte [ecx + eax*4 + 0x10]
and dl, 1
xor dl, byte [esp + 0x17]
mov byte [esp + 0x22], dl
je 0x5b8d0ca
mov eax, dword [esp + 0x3c]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x23], 1
mov ecx, dword [esp + 0x38]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 2
je 0x5b8d0f0
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x5b8d026
or dword [ebx + 0x2c], 0x80000
cmp dword [esp + 0x40], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x28]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x18], eax
or dword [esp + 0x10], ecx
mov esi, dword [esp + 0xc]
add dword [esp + 0x4c], 0x14
inc esi
mov dword [esp + 0xc], esi
cmp esi, dword [esp + 0x78]
jl 0x5b8ce10
jmp 0x5b8d03e
mov ebx, dword [esp + 0x1c]
test bl, bl
je 0x5b8d2be
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x30]
or eax, dword [edx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
or eax, dword [edx + 0xc]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x50], eax
test esi, esi
jle 0x5b8d2c6
mov esi, dword [esp + 0x38]
add esi, 8
mov dword [esp + 0x28], esi
nop dword [eax]
xor edi, edi
xor edx, edx
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov ecx, edi
cmovae edx, edi
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x78], edx
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x5b8d290
mov ecx, dword [esp + 0x44]
mov esi, dword [esi]
add ecx, 0x1f0
test esi, esi
je 0x5b8d1fc
cmp byte [esi], 0xa7
jne 0x5b8d1e6
test byte [esi + 4], 0x20
jne 0x5b8d1e6
mov edx, dword [esi + 0x1c]
call fcn.05b937a0
mov ebx, eax
mov ecx, edx
jmp 0x5b8d20d
test dword [esi + 4], 0x810000
jne 0x5b8d1fc
mov edx, esi
call fcn.05b93d70
mov ebx, eax
mov ecx, edx
jmp 0x5b8d20d
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, ebx
mov dword [esp + 0x2c], ecx
or eax, ecx
jne 0x5b8d262
mov dword [esp + 0x98], fcn.05bdee90
mov eax, 1
mov word [esp + 0xa8], ax
mov dword [esp + 0x9c], 0x5bdf130
mov dword [esp + 0xac], 0
test esi, esi
je 0x5b8d262
mov edx, esi
lea ecx, [esp + 0x94]
call fcn.05be5180
cmp word [esp + 0xa8], 0
je 0x5b8d290
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
not ecx
not eax
and ecx, ebx
and eax, dword [esp + 0x2c]
or ecx, eax
mov ecx, dword [esp + 0x18]
jne 0x5b8d294
or ecx, edi
mov edi, dword [esp + 0x10]
or edi, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
jmp 0x5b8d298
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
add dword [esp + 0x28], 0x14
inc eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x30]
jl 0x5b8d190
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
jmp 0x5b8d2ce
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
inc dword [esp + 0x3c]
test bl, bl
jne 0x5b8cb33
jmp 0x5b8d2f2
cmp byte [edx + 0x20], 0
je 0x5b8d2f2
and eax, 0x280
cmp eax, 0x80
jne 0x5b8d303
mov eax, dword [esp + 0x48]
cmp ecx, dword [esp + 0x84]
jne 0x5b8d311
cmp edi, eax
jne 0x5b8d311
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x5b8d387
lea ebx, [esi - 1]
test ebx, ebx
jle 0x5b8ca86
cmp ebx, 0x40
jge 0x5b8d344
xor ecx, ecx
xor edx, edx
mov eax, ebx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
jmp 0x5b8d35e
xorps xmm0, xmm0
movlpd qword [esp + 0x88], xmm0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x18]
and esi, edi
cmp eax, ecx
jne 0x5b8d370
cmp esi, edx
je 0x5b8d37e
dec ebx
test ebx, ebx
jg 0x5b8d320
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret