Function at 0x5a0790
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 0x5a102c
sub esp, 0x90
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x254]
lea edx, [0x5e6260]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x20
call fcn.0040ddd0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
lea ecx, [0x5ff500]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044a5d0
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 0x5a0840
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 0x5a0f6d
mov dword [esp + 0x3c], esi
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffc
cmp ebx, edi
jbe 0x5a0880
mov edi, dword [0x7bb130]
mov esi, dword [0x7bb134]
cmp ebp, ecx
mov dword [esp + 0x80], eax
mov eax, 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
jmp 0x5a08c8
mov edi, dword [edx + 0x28c]
mov esi, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp ebx, edi
ja 0x5a1022
sub edi, ebx
sub edx, ebx
neg edx
sar edx, 0x1f
and edx, ebx
cmp edi, 3
jbe 0x5a1016
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 0x5a100f
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 0x5a0f31
mov dword [esp + 0x50], ebp
lea esi, [ebx + 4]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a091c
mov esi, dword [0x7bb130]
mov edi, dword [0x7bb134]
mov dword [esp + 0x78], eax
xor eax, eax
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x78]
jmp 0x5a0968
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a1006
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 0x5a0ffa
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 0x5a0ef2
lea esi, [ebx + 6]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a09ae
mov esi, dword [0x7bb130]
mov edi, dword [0x7bb134]
mov dword [esp + 0x70], eax
xor eax, eax
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x70]
jmp 0x5a09fa
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a0ff1
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 0x5a0fe5
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 0x5a0eb3
lea esi, [ebx + 8]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a0a40
mov esi, dword [0x7bb130]
mov edi, dword [0x7bb134]
mov dword [esp + 0x68], eax
xor eax, eax
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x68]
jmp 0x5a0a8c
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a0fdc
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 0x5a0fd0
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 0x5a0e74
lea esi, [ebx + 0xa]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffe
cmp edi, esi
jae 0x5a0ad2
mov esi, dword [0x7bb130]
mov edi, dword [0x7bb134]
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x60]
jmp 0x5a0b1e
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a0fc7
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 0x5a0fbb
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 0x5a0e35
lea esi, [ebx + 0xc]
mov edi, dword [edx + 0x2ac]
add edi, 0xfffffffc
cmp edi, esi
jae 0x5a0b63
mov esi, dword [0x7bb130]
mov edi, dword [0x7bb134]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
jmp 0x5a0bad
mov edi, dword [edx + 0x28c]
mov ebp, dword [edx + 0x288]
mov edx, dword [edx + 0x290]
cmp edi, esi
jb 0x5a0fb2
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 0x5a0fa6
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 0x5a0df6
mov dword [esp + 0x38], ebx
movzx ecx, byte [0x7b65d0]
mov esi, dword [0x7b65d4]
mov edi, dword [0x7b65d8]
mov eax, dword [0x7b65dc]
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.0059c000
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jne 0x5a0db3
mov dword [esp + 0x40], eax
movzx ecx, byte [0x7b6710]
mov edx, dword [0x7b6714]
mov ebx, dword [0x7b6718]
mov ebp, dword [0x7b671c]
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.0059c000
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 0x5a0d77
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], edx
movzx eax, byte [0x7b6710]
mov ebx, dword [0x7b6714]
mov ebp, dword [0x7b6718]
mov esi, dword [0x7b671c]
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.0059c000
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 0x5a081d
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.00461150
mov eax, esi
mov ecx, edi
call fcn.004611c0
mov eax, 1
mov ecx, esi
call fcn.00461150
mov eax, esi
mov ecx, edi
call fcn.004611c0
mov eax, 1
mov ecx, esi
call fcn.00461150
mov eax, esi
mov ecx, edi
call fcn.004611c0
mov eax, 1
mov ecx, esi
call fcn.00461150
mov eax, esi
mov ecx, edi
call fcn.004611c0
mov eax, 1
mov ecx, esi
call fcn.00461150
mov eax, esi
mov ecx, edi
call fcn.004611c0
mov eax, ebp
call fcn.00461150
mov eax, 3
mov ecx, edi
call fcn.00461150
mov eax, ebx
mov ecx, edi
call fcn.004611c0
nop
call fcn.0045fcc0
jmp fcn.005a0790