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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x5b892c
sub esp, 0xbc
mov ecx, dword [esp + 0xc8]
test ecx, ecx
jbe 0x5b8924
mov edx, dword [esp + 0xc4]
movzx ebx, byte [edx]
cmp ecx, 5
jb 0x5b891a
mov byte [esp + 0x53], bl
mov eax, dword [esp + 0xcc]
lea ebp, [eax - 5]
mov dword [esp + 0x58], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 5
add ebp, edx
mov dword [esp + 0xa0], ebp
lea edi, [ecx - 5]
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0xc0]
cmp word [ecx + 0x10], 0x304
jne 0x5b7e8f
cmp bl, 0x14
jne 0x5b7e8f
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], esi
mov byte [esp + 0xdc], bl
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
add esp, 0xbc
ret
mov dword [esp], ecx
call fcn.005b7ba0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
test edx, edx
jne 0x5b7ee4
mov edx, ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0xa4], ebx
xor ebx, ebx
mov ebp, 0xffffffff
movzx esi, byte [esp + 0x53]
xchg esi, eax
mov byte [esp + 0x51], al
xchg esi, eax
mov esi, ecx
mov edi, dword [esp + 0xa0]
jmp 0x5b855e
je 0x5b8902
mov dword [esp + 0x78], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0xb8], ebx
lea eax, [0x616fe0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00409150
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5b7f76
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xa0]
xor ebx, ebx
mov ebp, 0xffffffff
xor esi, esi
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x54]
jmp 0x5b83bc
lea eax, [0x6245e0]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 8], ecx
call fcn.00409150
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x5b81c8
lea eax, [0x61cec0]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], eax
call fcn.00409150
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5b8902
mov dword [esp + 0xac], ecx
mov dword [esp + 0x7c], eax
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 4]
mov dword [esp + 0x84], edx
mov ebx, dword [eax + 0x20]
mov ecx, dword [ecx + 0x18]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x5b88fd
lea ebx, [eax + 1]
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x5b8037
cdq
idiv ecx
jmp 0x5b8039
xor edx, edx
mov eax, ecx
sub eax, edx
cmp ecx, 0xffffffff
je 0x5b8047
cdq
idiv ecx
jmp 0x5b8049
xor edx, edx
add ebx, edx
mov ebp, dword [esp + 0x78]
lea ebx, [ebx + ebp + 1]
mov eax, dword [esp + 0x54]
cdq
idiv ecx
test edx, edx
jne 0x5b8176
mov eax, dword [esp + 0x54]
cmp ebx, eax
jg 0x5b8176
test ebp, ebp
jle 0x5b80e5
mov edx, dword [esp + 0x58]
cmp ebp, edx
ja 0x5b88f6
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0xac]
mov dword [esp], ebx
mov esi, dword [esp + 0xa0]
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
ja 0x5b88f1
mov ecx, dword [esp + 0xcc]
sub ecx, eax
mov ebx, dword [esp + 0xc8]
sub ebx, eax
lea ebp, [ecx - 5]
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
mov esi, dword [esp + 0xa0]
lea ebp, [esi + eax]
lea edi, [ebx - 5]
jmp 0x5b80f2
mov ecx, dword [esp + 0x58]
mov edi, eax
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0xa4], ebp
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0xac]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
call eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call fcn.005b7cd0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0xa4]
mov ebx, eax
mov ebp, ecx
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
jmp 0x5b83bc
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0x14
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x54]
cmp ebx, ebp
jg 0x5b850c
mov edx, dword [esp + 0x58]
cmp ebx, edx
ja 0x5b88ea
test ebx, ebx
jne 0x5b81fe
mov edx, dword [esp + 0xc0]
lea ebp, [edx + 0x24]
mov esi, 8
mov edi, 8
jmp 0x5b8212
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0x58]
mov edi, ebx
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov esi, dword [esp + 0xcc]
sub esi, ebx
add esi, 0xfffffffb
mov dword [esp + 0x60], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebx
mov edi, dword [esp + 0xa0]
add esi, edi
mov dword [esp + 0xa4], esi
mov edi, dword [esp + 0xc8]
sub edi, ebx
cmp word [edx + 0x10], 0x304
jne 0x5b8283
mov ebx, dword [esp + 0xcc]
mov ebx, 5
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0xcc]
jmp 0x5b8329
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], edi
mov ebx, dword [edx + 0x24]
mov ebp, dword [edx + 0x28]
mov dword [edx + 0x2c], ebx
mov dword [edx + 0x30], ebp
mov ebx, dword [esp + 0xc4]
movzx ebp, word [ebx]
movzx esi, byte [ebx + 2]
mov word [edx + 0x34], bp
xchg esi, eax
mov byte [edx + 0x36], al
xchg esi, eax
mov ebp, dword [eax + 0x18]
mov dword [esp], ecx
call ebp
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x8c]
mov edx, ecx
sub ecx, eax
mov eax, dword [esp + 0xc0]
lea ebx, [eax + 0x2c]
add ecx, 0xfffffffb
mov ebp, ecx
sar ecx, 8
mov byte [ebx + 0xb], cl
xchg ebp, eax
mov byte [ebx + 0xc], al
xchg ebp, eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov edi, edx
mov edx, 0xd
mov dword [esp + 0x88], edx
mov dword [esp + 0xb4], ebx
mov ebx, 0xd
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
lea edx, [edi - 5]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
call eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
test eax, eax
jne 0x5b84ba
mov eax, dword [esp + 0x60]
mov ebp, 0xffffffff
mov esi, edx
mov edi, ecx
mov dword [esp + 0x58], ebx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xa4]
xor ebx, ebx
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0xc0]
cmp word [edx + 0x10], 0x304
jne 0x5b849e
movzx edx, byte [esp + 0x53]
cmp dl, 0x17
jne 0x5b844c
cmp esi, 0x4001
jg 0x5b83fa
xchg ebp, eax
mov byte [esp + 0x52], al
xchg ebp, eax
mov dword [esp + 0x64], ebx
lea ebx, [esi - 1]
jmp 0x5b885c
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0x16
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0xa
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
mov dword [esp + 0x94], eax
movzx eax, byte [esp + 0x53]
mov byte [esp + 0x51], al
mov eax, dword [esp + 0x94]
jmp 0x5b855e
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0x14
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0x14
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
xchg ebp, eax
mov byte [esp + 0x52], al
xchg ebp, eax
mov dword [esp + 0x64], ebx
mov ebp, dword [edx + 0x1c]
mov ebx, dword [edx + 0x20]
test ebp, ebp
jne 0x5b857b
mov eax, dword [esp + 0x58]
jmp 0x5b8762
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jl 0x5b86ba
mov ebx, ecx
sub ecx, eax
mov ebp, dword [esp + 0x64]
sub ecx, ebp
mov ebp, ecx
shr ecx, 0x1f
lea esi, [ecx - 1]
and esi, ebp
mov ebp, esi
sar esi, 8
mov edi, dword [esp + 0xc4]
xchg esi, eax
mov byte [edi + 3], al
xchg esi, eax
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
lea ecx, [ebp + eax]
mov edx, dword [esp + 0x60]
cmp edx, ecx
jb 0x5b8851
cmp ebp, ecx
ja 0x5b884a
sub edx, ebp
neg edx
sar edx, 0x1f
and edx, ebp
mov esi, dword [esp + 0xa4]
add edx, esi
cmp ebx, ecx
jb 0x5b8841
mov dword [esp + 0x70], eax
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0xc0]
mov edx, dword [eax + 0x1c]
mov ebx, dword [eax + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ebx
lea edx, [eax + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xd
lea edx, [eax + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 5
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x60]
mov dword [esp + 0x34], edx
sub edx, ecx
mov edi, edx
neg edx
sar edx, 0x1f
and edx, ecx
add edx, esi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x5c]
sub edx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
call fcn.005b47e0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
cmp ecx, edx
je 0x5b86ad
xor edx, edx
jmp 0x5b873a
mov edx, dword [esp + 0x9c]
xor ebx, ebx
xor ebp, ebp
jmp 0x5b8725
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0x14
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
lea esi, [ebx + 1]
mov dword [esp + 0x74], esi
movzx edi, byte [ebx + eax]
movzx esi, byte [ebx + edx]
xor edi, esi
or ebp, edi
mov esi, dword [esp + 0x74]
mov ebx, esi
cmp ebx, ecx
jge 0x5b8730
jb 0x5b870c
jmp 0x5b883a
nop
xchg ebp, eax
movzx edx, al
xchg ebp, eax
dec edx
shr edx, 0x1f
movzx ebx, byte [esp + 0x52]
movzx ebx, bl
and ebx, edx
cmp ebx, 1
jne 0x5b8769
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0xa4]
mov ecx, 7
jmp 0x5b87bc
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0x14
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
dec ecx
test ecx, ecx
jl 0x5b8822
cmp ecx, 8
jae 0x5b8816
movzx ebx, byte [edx + ecx + 0x24]
lea ebp, [ebx + 1]
xchg ebp, eax
mov byte [edx + ecx + 0x24], al
xchg ebp, eax
cmp bl, 0xff
je 0x5b87bb
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], eax
movzx eax, byte [esp + 0x51]
mov byte [esp + 0xdc], al
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
add esp, 0xbc
ret
mov eax, ecx
mov ecx, 8
call fcn.0045e530
lea eax, [0x612980]
mov dword [esp], eax
lea eax, [0x690444]
mov dword [esp + 4], eax
call fcn.00433710
mov eax, ebx
call fcn.0045e530
mov eax, ecx
mov ecx, ebx
call fcn.0045e590
mov eax, ebp
call fcn.0045e590
call fcn.0045e570
dec ebx
movzx ebp, byte [esp + 0x52]
test ebx, ebx
jl 0x5b88cd
cmp esi, ebx
jbe 0x5b88e1
movzx ebp, byte [edi + ebx]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5b88c4
test ebx, ebx
jne 0x5b8856
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0xdc], 0
lea eax, [0x690cb8]
mov dword [esp + 0xe0], eax
mov eax, 0xa
lea ecx, [0x7acbc0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe4], eax
add esp, 0xbc
ret
mov edx, ebp
mov esi, ebx
movzx ebp, byte [esp + 0x52]
mov ebx, dword [esp + 0x64]
mov byte [esp + 0x51], dl
mov edx, dword [esp + 0xc0]
jmp 0x5b855e
mov eax, ebx
mov ecx, esi
call fcn.0045e530
mov ecx, ebx
call fcn.0045e570
call fcn.0045e590
mov ecx, ebp
call fcn.0045e570
call fcn.00432530
lea eax, [0x612980]
mov dword [esp], eax
lea eax, [0x69044c]
mov dword [esp + 4], eax
call fcn.00433710
mov eax, 5
call fcn.0045e590
xor eax, eax
call fcn.0045e530
nop
call fcn.0045d0a0
jmp fcn.005b7dd0