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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x5bb22c
sub esp, 0xc0
mov ecx, dword [esp + 0xcc]
test ecx, ecx
jbe 0x5bb222
mov edx, dword [esp + 0xc8]
movzx ebx, byte [edx]
cmp ecx, 5
jb 0x5bb218
mov byte [esp + 0x53], bl
mov eax, dword [esp + 0xd0]
lea ebp, [eax - 5]
mov dword [esp + 0x88], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 5
add ebp, edx
mov dword [esp + 0xb8], ebp
lea edi, [ecx - 5]
mov dword [esp + 0x84], edi
mov ecx, dword [esp + 0xc4]
cmp word [ecx + 0x10], 0x304
jne 0x5ba766
cmp bl, 0x14
jne 0x5ba766
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], esi
mov byte [esp + 0xe0], 0x14
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
add esp, 0xc0
ret
mov dword [esp], ecx
call fcn.005ba470
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
test edx, edx
jne 0x5ba7b9
mov edx, ecx
movzx eax, byte [esp + 0x53]
mov byte [esp + 0x51], al
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0x88]
mov ebp, ecx
mov esi, eax
xor edi, edi
mov eax, 0xffffffff
mov byte [esp + 0x52], al
mov eax, esi
jmp 0x5bae48
je 0x5bb200
mov dword [esp + 0x54], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x94], edx
lea eax, [0x73baa0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004093d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5ba85a
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call eax
xor ecx, ecx
xor eax, eax
xor edx, edx
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0xb8]
xor edi, edi
mov ebx, 0xffffffff
mov byte [esp + 0x52], bl
mov ebx, dword [esp + 0x88]
jmp 0x5baca9
lea eax, [0x74a680]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0xbc]
mov dword [esp + 8], ecx
call fcn.004093d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x5baab4
lea eax, [0x741a60]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 8], eax
call fcn.004093d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5bb200
mov dword [esp + 0xac], ecx
mov dword [esp + 0x70], eax
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 4]
mov dword [esp + 0x6c], edx
mov ebx, dword [eax + 0x20]
mov ecx, dword [ecx + 0x18]
mov dword [esp], ebx
call ecx
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x5bb1fb
lea ebx, [eax + 1]
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x5ba916
cdq
idiv ecx
jmp 0x5ba918
xor edx, edx
mov eax, ecx
sub eax, edx
cmp ecx, 0xffffffff
je 0x5ba926
cdq
idiv ecx
jmp 0x5ba928
xor edx, edx
add ebx, edx
mov ebp, dword [esp + 0x54]
lea ebx, [ebx + ebp + 1]
mov eax, dword [esp + 0x84]
cdq
idiv ecx
test edx, edx
jne 0x5baa62
mov eax, dword [esp + 0x84]
cmp ebx, eax
jg 0x5baa62
test ebp, ebp
jle 0x5ba9d0
mov edx, dword [esp + 0x88]
cmp ebp, edx
ja 0x5bb1f4
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0xac]
mov dword [esp], ebx
mov esi, dword [esp + 0xb8]
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
call ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x84]
cmp eax, ecx
ja 0x5bb1ef
mov ecx, dword [esp + 0xd0]
sub ecx, eax
mov ebx, dword [esp + 0xcc]
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 + 0xb8]
lea ebp, [esi + eax]
lea edi, [ebx - 5]
jmp 0x5ba9e0
mov edi, eax
mov ecx, dword [esp + 0x88]
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x58], edi
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x70]
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 + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
call fcn.005ba5a0
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0xc]
xor edx, edx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0xa0]
mov edi, ecx
mov byte [esp + 0x52], al
xor ecx, ecx
xor eax, eax
jmp 0x5baca9
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0x14
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x84]
cmp ebx, ebp
jg 0x5badf6
mov edx, dword [esp + 0x88]
cmp ebx, edx
ja 0x5bb1e8
test ebx, ebx
jne 0x5baaf0
mov edx, dword [esp + 0xc4]
lea ebp, [edx + 0x24]
mov esi, 8
mov edi, 8
jmp 0x5bab07
mov edx, dword [esp + 0xc4]
mov esi, dword [esp + 0x88]
mov edi, ebx
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov esi, dword [esp + 0xd0]
sub esi, ebx
add esi, 0xfffffffb
mov dword [esp + 0x5c], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebx
mov edi, dword [esp + 0xb8]
add esi, edi
mov dword [esp + 0xa0], esi
mov edi, dword [esp + 0xcc]
sub edi, ebx
cmp word [edx + 0x10], 0x304
jne 0x5bab75
mov ebx, dword [esp + 0xd0]
mov ebx, 5
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0xd0]
jmp 0x5bac19
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], 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 + 0xc8]
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 + 0x90]
mov edx, ecx
sub ecx, eax
mov eax, dword [esp + 0xc4]
lea ebx, [eax + 0x2c]
add ecx, 0xfffffffb
mov ebp, ecx
sar ecx, 8
mov esi, 0xd
mov byte [esi + ebx - 2], cl
xchg ebp, eax
mov byte [esi + ebx - 1], al
xchg ebp, eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edi, edx
mov edx, 0xd
mov dword [esp + 0x7c], 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 + 0x5c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
lea edx, [edi - 5]
mov dword [esp + 0x58], 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 + 0x7c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x5bada4
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0xa0]
xor edi, edi
mov ebx, 0xffffffff
mov byte [esp + 0x52], bl
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0xc4]
cmp word [edx + 0x10], 0x304
jne 0x5bad88
movzx edx, byte [esp + 0x53]
cmp dl, 0x17
jne 0x5bad36
cmp ecx, 0x4001
jg 0x5bace4
mov dword [esp + 0x8c], ebx
lea edx, [ecx - 1]
jmp 0x5bb155
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0x16
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0xa
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
mov dword [esp + 0x98], eax
movzx eax, byte [esp + 0x53]
mov byte [esp + 0x51], al
mov eax, dword [esp + 0x98]
jmp 0x5bae48
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0x14
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0x14
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xa0], esi
mov esi, dword [edx + 0x1c]
mov ebx, dword [edx + 0x20]
test esi, esi
jne 0x5bae69
mov ebx, dword [esp + 0x88]
jmp 0x5bb057
mov dword [esp + 0x58], ebp
mov dword [esp + 0x78], edi
mov eax, dword [esi + 0x18]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jl 0x5bafa9
mov ebx, ecx
sub ecx, eax
mov ebp, dword [esp + 0x78]
sub ecx, ebp
nop
mov ebp, ecx
shr ecx, 0x1f
lea esi, [ecx - 1]
and esi, ebp
mov ebp, esi
sar esi, 8
mov edi, dword [esp + 0xc8]
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 + 0x5c]
cmp edx, ecx
jb 0x5bb148
cmp ebp, ecx
ja 0x5bb141
sub edx, ebp
neg edx
sar edx, 0x1f
and edx, ebp
mov esi, dword [esp + 0xa0]
add edx, esi
cmp ebx, ecx
jb 0x5bb138
mov dword [esp + 0x68], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0xa8], edx
mov eax, dword [esp + 0xc4]
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 + 0xd0]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x5c]
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 + 0x58]
sub edx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
call fcn.005b8ee0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
cmp ecx, edx
je 0x5baf9c
xor edx, edx
jmp 0x5bb02f
mov edx, dword [esp + 0xa8]
xor ebx, ebx
xor ebp, ebp
jmp 0x5bb01a
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0x14
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
lea esi, [ebx + 1]
mov dword [esp + 0x80], esi
movzx edi, byte [ebx + eax]
movzx esi, byte [ebx + edx]
xor edi, esi
or ebp, edi
mov esi, dword [esp + 0x80]
mov ebx, esi
cmp ebx, ecx
jge 0x5bb025
jb 0x5baffb
jmp 0x5bb131
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 0x5bb05e
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0xa0]
mov ebp, 7
jmp 0x5bb0b1
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0x14
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
dec ebp
test ebp, ebp
jl 0x5bb119
cmp ebp, 8
jae 0x5bb10d
movzx esi, byte [edx + ebp + 0x24]
lea edi, [esi + 1]
xchg edi, eax
mov byte [edx + ebp + 0x24], al
xchg edi, eax
xchg esi, eax
cmp al, 0xff
xchg esi, eax
je 0x5bb0b0
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ebx
movzx eax, byte [esp + 0x51]
mov byte [esp + 0xe0], al
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
add esp, 0xc0
ret
mov eax, ebp
mov ecx, 8
call fcn.00456b40
lea eax, [0x7345e0]
mov dword [esp], eax
lea eax, [0x7c9d4c]
mov dword [esp + 4], eax
call fcn.00430590
mov eax, ebx
call fcn.00456b40
mov eax, ecx
mov ecx, ebx
call fcn.00456ba0
mov eax, ebp
call fcn.00456ba0
call fcn.00456b80
dec edx
mov ebx, dword [esp + 0x8c]
test edx, edx
jl 0x5bb1cc
cmp edx, ecx
jae 0x5bb1e1
movzx ebx, byte [eax + edx]
test bl, bl
jne 0x5bb1bf
test edx, edx
jne 0x5bb14d
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 0
lea eax, [0x7ca988]
mov dword [esp + 0xe4], eax
mov eax, 0xa
lea ecx, [0x6870e0]
lea eax, [ecx + eax*8]
mov dword [esp + 0xe8], eax
add esp, 0xc0
ret
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x8c]
jmp 0x5bb1d1
mov edx, 0x17
mov byte [esp + 0x51], dl
mov edx, dword [esp + 0xc4]
jmp 0x5bae48
mov eax, edx
call fcn.00456b40
mov ecx, ebx
call fcn.00456b80
call fcn.00456ba0
mov ecx, ebp
call fcn.00456b80
call fcn.0042f690
lea eax, [0x7345e0]
mov dword [esp], eax
lea eax, [0x7c9d54]
mov dword [esp + 4], eax
call fcn.00430590
mov eax, 5
call fcn.00456ba0
xor eax, eax
mov ecx, eax
call fcn.00456b40
nop
call fcn.00455690
jmp fcn.005ba6a0