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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x5a8e3c
sub esp, 0x90
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x254]
lea edx, [0x60e480]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x20
call fcn.0040de30
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
lea ecx, [0x62dde0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00447cc0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
xor ebp, ebp
xor esi, esi
jmp 0x5a8650
mov edi, dword [esp + 0x44]
lea ebp, [edi + 1]
lea edi, [edx + ecx + 0x10]
lea esi, [ebx + edx + 0x10]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
mov ebx, edi
cmp ebp, ecx
jge 0x5a8d7d
mov dword [esp + 0x3c], esi
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffc
cmp ebx, edi
jbe 0x5a8690
mov edi, dword [0x8256f8]
mov esi, dword [0x8256fc]
cmp ebp, ecx
mov dword [esp + 0x80], eax
mov eax, 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
jmp 0x5a86d8
mov edi, dword [edx + 0x28c]
mov esi, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp ebx, edi
ja 0x5a8e32
sub edi, ebx
sub edx, ebx
neg edx
sar edx, 0x1f
and edx, ebx
cmp edi, 3
jbe 0x5a8e26
mov edx, dword [edx + esi]
cmp ebp, ecx
mov edi, 0
mov dword [esp + 0x34], edx
mov esi, 0
mov edx, dword [esp + 0x94]
jae 0x5a8e1f
mov dword [esp + 0x44], ebp
mov dword [esp + 0x88], esi
imul ebp, ebp, 0x1c
mov esi, dword [esp + 0x34]
mov dword [eax + ebp], esi
test edi, edi
jne 0x5a8d41
mov dword [esp + 0x50], ebp
lea esi, [ebx + 4]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a872c
mov esi, dword [0x8256f8]
mov edi, dword [0x8256fc]
mov dword [esp + 0x78], eax
xor eax, eax
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x78]
jmp 0x5a8778
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a8e16
sub edx, ebx
sub edi, ebx
add edx, 0xfffffffc
neg edx
sar edx, 0x1f
and edx, esi
lea esi, [edi - 4]
cmp esi, 1
jbe 0x5a8e0a
movzx edx, word [edx + ebp]
mov ebp, dword [esp + 0x50]
xor esi, esi
mov word [esp + 0x2e], dx
xor edi, edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x88], edi
movzx edi, word [esp + 0x2e]
mov word [eax + ebp + 4], di
test esi, esi
jne 0x5a8d02
lea esi, [ebx + 6]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a87be
mov esi, dword [0x8256f8]
mov edi, dword [0x8256fc]
mov dword [esp + 0x70], eax
xor eax, eax
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x70]
jmp 0x5a880a
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a8e01
sub edx, ebx
sub edi, ebx
add edx, 0xfffffffa
neg edx
sar edx, 0x1f
and edx, esi
lea esi, [edi - 6]
cmp esi, 1
jbe 0x5a8df5
movzx edx, word [edx + ebp]
mov ebp, dword [esp + 0x50]
xor esi, esi
mov word [esp + 0x2c], dx
xor edi, edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x88], edi
movzx edi, word [esp + 0x2c]
mov word [eax + ebp + 6], di
test esi, esi
jne 0x5a8cc3
lea esi, [ebx + 8]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a8850
mov esi, dword [0x8256f8]
mov edi, dword [0x8256fc]
mov dword [esp + 0x68], eax
xor eax, eax
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x68]
jmp 0x5a889c
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a8dec
sub edx, ebx
sub edi, ebx
add edx, 0xfffffff8
neg edx
sar edx, 0x1f
and edx, esi
lea esi, [edi - 8]
cmp esi, 1
jbe 0x5a8de0
movzx edx, word [edx + ebp]
mov ebp, dword [esp + 0x50]
xor esi, esi
mov word [esp + 0x2a], dx
xor edi, edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x88], edi
movzx edi, word [esp + 0x2a]
mov word [eax + ebp + 8], di
test esi, esi
jne 0x5a8c84
lea esi, [ebx + 0xa]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a88e2
mov esi, dword [0x8256f8]
mov edi, dword [0x8256fc]
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x60]
jmp 0x5a892e
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a8dd7
sub edx, ebx
sub edi, ebx
add edx, 0xfffffff6
neg edx
sar edx, 0x1f
and edx, esi
lea esi, [edi - 0xa]
cmp esi, 1
jbe 0x5a8dcb
movzx edx, word [edx + ebp]
mov ebp, dword [esp + 0x50]
xor esi, esi
mov word [esp + 0x28], dx
xor edi, edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x88], edi
movzx edi, word [esp + 0x28]
mov word [eax + ebp + 0xa], di
test esi, esi
jne 0x5a8c45
lea esi, [ebx + 0xc]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffc
cmp edi, esi
jae 0x5a8973
mov esi, dword [0x8256f8]
mov edi, dword [0x8256fc]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
jmp 0x5a89bd
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a8dc2
sub edx, ebx
sub edi, ebx
add edx, 0xfffffff4
neg edx
sar edx, 0x1f
and edx, esi
lea esi, [edi - 0xc]
cmp esi, 3
jbe 0x5a8db6
mov edx, dword [edx + ebp]
mov ebp, dword [esp + 0x50]
xor esi, esi
mov dword [esp + 0x30], edx
xor edi, edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ebp + 0xc], edi
test esi, esi
jne 0x5a8c06
mov dword [esp + 0x38], ebx
movzx ecx, byte [0x820320]
mov esi, dword [0x820324]
mov edi, dword [0x820328]
mov eax, dword [0x82032c]
mov dword [esp], edx
mov byte [esp + 4], cl
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
lea ecx, [eax + ebp + 0x10]
mov dword [esp + 0x18], ecx
call fcn.005a3e10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jne 0x5a8bc3
mov dword [esp + 0x40], eax
movzx ecx, byte [0x820460]
mov edx, dword [0x820464]
mov ebx, dword [0x820468]
mov ebp, dword [0x82046c]
mov esi, dword [esp + 0x94]
mov dword [esp], esi
mov byte [esp + 4], cl
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x38]
lea edx, [ecx + eax + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x8c]
lea ebp, [ebx + edx + 0x14]
mov dword [esp + 0x18], ebp
call fcn.005a3e10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
add ecx, eax
mov edx, dword [esp + 0x3c]
lea ebx, [edx + eax]
lea eax, [edx + eax + 0x10]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test ebp, ebp
jne 0x5a8b87
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], edx
movzx eax, byte [0x820460]
mov ebx, dword [0x820464]
mov ebp, dword [0x820468]
mov esi, dword [0x82046c]
mov edi, dword [esp + 0x94]
mov dword [esp], edi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
lea eax, [edx + ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x8c]
lea eax, [ebx + eax + 0x18]
mov dword [esp + 0x18], eax
call fcn.005a3e10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
add ecx, eax
mov edx, dword [esp + 0x48]
lea ebx, [edx + eax]
lea eax, [eax + edx + 0x10]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test ebp, ebp
je 0x5a862d
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], edi
add esp, 0x90
ret
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], edi
add esp, 0x90
ret
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x3c]
add eax, 0x10
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ebx
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x3c]
add eax, 0xc
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x3c]
add eax, 0xa
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x3c]
add eax, 8
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x3c]
add eax, 6
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x3c]
add eax, 4
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], esi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
add esp, 0x90
ret
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x90
ret
mov eax, 3
mov ecx, esi
call fcn.0045e9c0
mov eax, esi
mov ecx, edi
call fcn.0045ea30
mov eax, 1
mov ecx, esi
call fcn.0045e9c0
mov eax, esi
mov ecx, edi
call fcn.0045ea30
mov eax, 1
mov ecx, esi
call fcn.0045e9c0
mov eax, esi
mov ecx, edi
call fcn.0045ea30
mov eax, 1
mov ecx, esi
call fcn.0045e9c0
mov eax, esi
mov ecx, edi
call fcn.0045ea30
mov eax, 1
mov ecx, esi
call fcn.0045e9c0
mov eax, esi
mov ecx, edi
call fcn.0045ea30
mov eax, ebp
call fcn.0045e9c0
mov eax, 3
mov ecx, edi
call fcn.0045e9c0
mov eax, ebx
mov ecx, edi
call fcn.0045ea30
nop
call fcn.0045d530
jmp fcn.005a85a0