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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x40]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
push 9
push 0x79509c
mov dword [esp + 0xc], ecx
push ecx
mov dword [esp + 0x14], eax
push eax
push edx
call fcn.005acf80
add esp, 0x14
test byte [esp + 0x40], 1
jne 0x5a988e
cmp byte [esp + 0x4e], 0
jne 0x5a9c54
mov esi, dword [esp + 0x48]
movzx eax, byte [esp + 0x4d]
test esi, esi
je 0x5a9b57
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
jmp 0x5a9b40
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x20], eax
sub eax, ecx
mov dword [esp + 0x14], esi
cmp eax, esi
jae 0x5a9c54
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
mov edx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x1c], edi
cmp ebx, ecx
mov edi, ecx
mov dword [esp + 0x28], ebx
cmova edi, ebx
neg ebx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], esi
jmp 0x5a993d
mov ecx, dword [esp + 0x10]
jmp 0x5a992b
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x20], ecx
jb 0x5a9ea4
cmp dword [esp + 0x1c], 0xffffffff
mov eax, ecx
je 0x5a992b
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
sub ebx, ecx
cmp ebx, dword [esp + 0x14]
mov edx, ebx
jae 0x5a9c54
mov eax, dword [esp + 0xc]
mov esi, 1
mov edi, 1
mov ebx, edx
movzx ecx, byte [eax + edx]
xor eax, eax
shld eax, esi, cl
shl edi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edi
cmovne edi, ecx
and eax, dword [esp + 0x38]
and edi, dword [esp + 0x3c]
or edi, eax
je 0x5a9910
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
cmp ecx, eax
cmovb eax, ecx
cmp dword [esp + 0x1c], 0xffffffff
cmove eax, ecx
cmp dword [esp + 0x20], edi
jb 0x5a9ed4
lea ecx, [eax - 1]
cmp ecx, edi
jae 0x5a9a10
mov ecx, eax
nop
sub ecx, 1
jb 0x5a9a18
mov edi, ebx
add edi, ecx
jb 0x5a9ea4
cmp edi, dword [esp + 0x14]
jae 0x5a9ea4
mov esi, dword [esp + 0x18]
movzx eax, byte [esi + eax - 1]
mov esi, dword [esp + 0xc]
cmp al, byte [esi + edi]
mov eax, ecx
je 0x5a99a0
mov eax, dword [esp + 0x28]
sub eax, ecx
jb 0x5a9ea4
mov ebx, dword [esp + 0x20]
cmp ebx, eax
jb 0x5a9ea4
add ebx, dword [esp + 0x30]
add ebx, ecx
cmp dword [esp + 0x1c], 0xffffffff
je 0x5a9905
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
jmp 0x5a992b
test eax, eax
jne 0x5a9ea4
cmp dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmove eax, dword [esp + 0x10]
cmp eax, ecx
cmovbe eax, ecx
nop
cmp eax, ecx
je 0x5a9b70
cmp dword [esp + 0x2c], ecx
je 0x5a9ea4
mov edi, ebx
add edi, ecx
jb 0x5a9ea4
cmp edi, dword [esp + 0x14]
jae 0x5a9ea4
mov esi, dword [esp + 0x18]
movzx ebx, byte [esi + ecx]
mov esi, dword [esp + 0xc]
inc ecx
cmp bl, byte [esi + edi]
mov ebx, edx
je 0x5a9a30
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
sub ebx, eax
jb 0x5a9ea4
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x10]
jne 0x5a9927
jmp 0x5a992b
movzx ecx, byte [esi + edi - 3]
cmp cl, 0xc0
jl 0x5a9a9d
and ecx, 0xf
jmp 0x5a9aad
movzx edi, byte [esi + edi - 4]
and ecx, 0x3f
and edi, 7
shl edi, 6
or ecx, edi
shl ecx, 6
and edx, 0x3f
or edx, ecx
jmp 0x5a9ad1
mov edi, esi
mov esi, edx
movzx edx, byte [edx + edi - 2]
cmp dl, 0xc0
jl 0x5a9a8e
and edx, 0x1f
shl edx, 6
and ebx, 0x3f
or ebx, edx
mov edx, dword [esp + 0x18]
jmp 0x5a9af3
jne 0x5a9ebe
movsx ebx, byte [edx + esi - 1]
mov dword [esp + 0x14], esi
test ebx, ebx
js 0x5a9ac0
test al, 1
jne 0x5a9b51
cmp ebx, 0x110000
je 0x5a9c54
mov ecx, 1
cmp ebx, 0x80
jb 0x5a9b36
cmp ebx, 0x10000
mov ecx, 4
mov esi, 2
sbb ecx, 0
cmp ebx, 0x800
cmovb ecx, esi
cmp dword [esp + 0x14], ecx
jb 0x5a9ea4
mov esi, dword [esp + 0x14]
xor al, 1
sub esi, ecx
je 0x5a9b57
cmp esi, dword [esp + 0xc]
jae 0x5a9ae0
cmp byte [edx + esi], 0xbf
jg 0x5a9ae6
jmp 0x5a9ebe
mov ebx, dword [esp + 0x14]
jmp 0x5a9b7a
xor ebx, ebx
test al, 1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
jne 0x5a9b82
mov al, 1
mov dword [esp + 0xc], eax
jmp 0x5a9c5e
add dword [esp + 0x10], ebx
jb 0x5a9ea4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, ebx
add edx, 9
jb 0x5a9ea4
mov dword [esp + 0x14], ebx
sub ebx, ecx
lea esi, [eax + 9]
mov eax, 9
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], ebx
jmp 0x5a9bde
mov edi, ecx
jmp 0x5a9c0e
mov edi, dword [esp + 0x14]
cmp byte [esi + edi], 0xbf
jle 0x5a9eae
add edx, dword [esp + 8]
mov edi, edx
test ebx, ebx
je 0x5a9c0a
movzx edx, byte [edi]
add dl, 0xd0
cmp dl, 0xa
jae 0x5a9ba5
inc ecx
je 0x5a9ea4
inc eax
inc esi
mov edx, ecx
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 8]
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x14]
add ecx, eax
je 0x5a9bc4
cmp ecx, dword [esp + 4]
jb 0x5a9bb0
test ebx, ebx
jne 0x5a9eae
mov edx, dword [esp + 0x14]
lea edi, [esi + edx]
test ebx, ebx
jne 0x5a9bc8
mov edi, dword [esp + 4]
mov edx, dword [esp + 8]
test ecx, ecx
mov eax, edx
je 0x5a9c32
cmp dword [esp + 4], edi
ja 0x5a9c25
je 0x5a9c2f
jmp 0x5a9f05
cmp byte [edx + edi], 0xbf
jle 0x5a9f05
lea eax, [edx + edi]
mov edx, dword [esp + 4]
sub edx, edi
cmp edx, 8
jb 0x5a9c54
mov edx, 0x6c6f6320
mov esi, 0x206e6d75
xor edx, dword [eax]
xor esi, dword [eax + 4]
or esi, edx
je 0x5a9ced
mov al, 1
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ecx
jbe 0x5a9ca5
test ecx, ecx
je 0x5a9c8a
mov edi, ecx
push ecx
push 1
push eax
push dword [esp + 0x14]
call fcn.004afc30
add esp, 0x10
test eax, eax
mov dword [esp + 8], eax
jne 0x5a9ca7
jmp 0x5a9efd
mov edi, ecx
push 1
push eax
push dword [esp + 0x10]
call fcn.004afc10
add esp, 0xc
mov dword [esp + 8], 1
jmp 0x5a9ca7
mov edi, ecx
movzx eax, byte [0x7ae360]
push 4
push 0x14
call fcn.004afbe0
add esp, 8
test eax, eax
je 0x5a9ecb
xor ecx, ecx
cmp byte [esp + 0xc], 0
mov edx, dword [esp + 8]
mov dword [eax], 0
cmovne ebx, ecx
cmovne esi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, edi
mov al, 1
add edx, 8
mov dword [esp + 0xc], eax
jb 0x5a9ea4
mov eax, edi
mov esi, 8
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edi
sub eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 8]
add eax, 8
mov dword [esp + 0x2c], eax
mov eax, edx
jmp 0x5a9d7d
cmp ebx, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jb 0x5a9c5a
jmp 0x5a9db4
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp byte [eax + edi], 0xbf
jle 0x5a9ea6
mov edi, dword [esp + 0x10]
add edi, dword [esp + 8]
test edx, edx
je 0x5a9da8
movzx eax, byte [edi]
add al, 0xd0
cmp al, 0xa
jae 0x5a9d24
mov edi, dword [esp + 0x18]
inc ebx
je 0x5a9ea4
inc dword [esp + 0x2c]
inc esi
mov eax, ebx
mov edx, dword [esp + 0x20]
mov ebx, edi
mov edi, dword [esp + 8]
add ebx, esi
lea edx, [edx + esi]
je 0x5a9d5e
cmp ebx, dword [esp + 4]
jb 0x5a9d40
mov eax, dword [esp + 0x18]
test edx, edx
jne 0x5a9ea6
mov edi, dword [esp + 0x2c]
add edi, eax
jmp 0x5a9d5e
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov eax, edi
sub eax, esi
jb 0x5a9f12
test esi, esi
je 0x5a9dd0
cmp byte [edx + esi], 0xc0
jl 0x5a9f12
test ecx, ecx
je 0x5a9dde
cmp byte [edx + edi], 0xbf
jle 0x5a9f12
add esi, edx
push eax
push esi
lea eax, [esp + 0x48]
push eax
call fcn.005ad520
add esp, 0xc
cmp byte [esp + 0x40], 0
jne 0x5a9c5a
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 4]
cmp edx, ebx
ja 0x5a9f1e
mov esi, dword [esp + 0x44]
test edx, edx
je 0x5a9e2d
cmp ecx, edx
jbe 0x5a9e2d
cmp ebx, ecx
jne 0x5a9f1e
mov eax, dword [esp + 8]
cmp byte [eax + edx], 0xbf
jg 0x5a9e35
jmp 0x5a9f1e
cmp ebx, ecx
jne 0x5a9f1e
mov eax, ecx
sub eax, edx
add edx, dword [esp + 8]
push eax
push edx
lea eax, [esp + 0x48]
push eax
mov edi, ecx
call fcn.005ad520
add esp, 0xc
cmp byte [esp + 0x40], 0
je 0x5a9e5c
mov ecx, edi
jmp 0x5a9c5e
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov ecx, edi
cmp edi, edx
jae 0x5a9e77
mov dword [esp + 0xc], 0
jmp 0x5a9c5e
test edx, edx
sete al
cmp ecx, edx
setbe cl
or cl, al
jne 0x5a9e8f
mov eax, dword [esp + 8]
cmp byte [eax + edx], 0xbf
jle 0x5a9ea4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov ecx, edx
mov dword [eax + 8], edx
jmp 0x5a9c61
ud2
mov eax, dword [esp + 4]
push eax
push ebx
jmp 0x5a9eb4
mov eax, dword [esp + 4]
push eax
push ecx
push eax
push dword [esp + 0x14]
call 0x5abe30
push esi
push 0
push dword [esp + 0x14]
push edx
call 0x5abe30
push 0x14
push 4
call fcn.006fd2f0
test eax, eax
je 0x5a9edf
dec eax
cmp eax, dword [esp + 0x10]
ud2
cmp dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
cmove eax, dword [esp + 0x10]
cmp dword [esp + 0x28], eax
jae 0x5a9ea4
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x10]
jmp 0x5a9ea4
push edi
push 1
call fcn.006fd2d0
mov eax, dword [esp + 4]
push eax
push edi
push eax
push edx
call 0x5abe30
push edi
push esi
push dword [esp + 0xc]
push edx
call 0x5abe30
push ebx
push edx
push ecx
push dword [esp + 0x14]
call 0x5abe30
int3