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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x64]
cmp eax, dword [ecx + 8]
jbe 0x5a2115
sub esp, 0xe4
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
call fcn.0059b070
mov eax, dword [esp + 4]
test eax, eax
je 0x5a17d8
mov edx, dword [esp + 0xe8]
xor ecx, ecx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x5a17fe
mov byte [esp + 0xf4], 0
add esp, 0xe4
ret
mov edx, dword [esp + 0xe8]
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], ebp
mov edi, ebp
mov ebp, dword [eax]
cmp ebp, 3
je 0x5a18cc
mov dword [esp + 0x4c], ecx
cmp ebp, 4
jne 0x5a1987
mov ebp, edi
lea edi, [esp + 0xcc]
xor eax, eax
call fcn.00463a8a
mov ecx, dword [esp + 0x50]
mov edi, ebp
mov ebp, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], edx
mov edx, dword [ecx + 0x38]
mov ebx, dword [ecx + 0x3c]
mov ebp, dword [ecx + 0x40]
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebp
mov edx, edi
lea edi, [esp + 0xb4]
mov ebx, esi
lea esi, [esp + 0xcc]
call fcn.00463f64
mov ecx, dword [esp + 0x50]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x48], ebp
mov esi, edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], ecx
mov edi, ebx
mov ebx, dword [esp + 0xe8]
mov ecx, dword [ebx + 0x140]
mov dword [esp + 0x3c], ecx
xor eax, eax
mov dword [esp + 0x2c], eax
xor eax, eax
jmp 0x5a1d73
test ecx, ecx
jne 0x5a19ea
cmp byte [eax + 0x45], 1
jne 0x5a1998
cmp byte [eax + 0x46], 1
jne 0x5a1998
lea eax, [0x5fb8c0]
mov dword [esp], eax
call fcn.0040bdb0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x50]
movzx edx, byte [eax + 0x45]
mov byte [ecx], dl
movzx eax, byte [eax + 0x46]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x20], edx
nop
mov ebp, dword [esp + 0xe8]
mov byte [ebp + 0xf8], 0
inc dword [ebp + 0xf4]
mov esi, dword [ebp + 0xe8]
mov edi, dword [ebp + 0xe4]
mov edx, dword [ebp + 0xf0]
cmp esi, edx
jbe 0x5a1a4b
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ecx
lea eax, [edx + edx*8]
lea eax, [edi + eax*8]
cmp dword [eax], 2
sete al
mov byte [ebp + 0xdd], al
inc dword [ebp + 0xf0]
mov dword [esp], ebp
call fcn.0059b070
mov eax, dword [esp + 4]
test eax, eax
jne 0x5a17e7
jmp 0x5a1a3c
mov ebp, dword [0x7b68ac]
mov dword [esp + 0x48], ebp
xor eax, eax
jmp 0x5a1a70
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov dword [edx], 4
mov dword [edx + 8], 0x20
mov esi, dword [0x7e2780]
test esi, esi
jne 0x5a19c4
lea eax, [0x627adf]
mov dword [edx + 4], eax
jmp 0x5a19d2
lea edi, [edx + 4]
lea eax, [0x627adf]
call fcn.00463860
mov dword [edx + 0x14], ebp
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ebx
mov byte [esp + 0xf4], 0
add esp, 0xe4
ret
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov dword [edx], 4
mov dword [edx + 8], 0x1f
mov esi, dword [0x7e2780]
test esi, esi
jne 0x5a1a16
lea eax, [0x6274df]
mov dword [edx + 4], eax
jmp 0x5a1a24
lea edi, [edx + 4]
lea eax, [0x6274df]
call fcn.00463860
mov dword [edx + 0x14], ebp
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ebx
mov byte [esp + 0xf4], 0
add esp, 0xe4
ret
mov byte [esp + 0xf4], 0
add esp, 0xe4
ret
mov eax, edx
mov ecx, esi
call fcn.004638e0
inc eax
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
cmp eax, ebp
jge 0x5a1c62
mov ebx, dword [0x7b68ac]
mov ebp, dword [0x7b68a8]
cmp eax, ebx
jae 0x5a1d54
mov dword [esp + 0x30], eax
lea ebx, [eax + eax*2]
lea ebx, [ebp + ebx*8]
mov ebp, edi
lea edi, [esp + 0x9c]
mov esi, ebx
call fcn.00463f64
mov ecx, dword [edx + 0x140]
mov dword [esp + 0x44], ecx
xor ebx, ebx
jmp 0x5a1ccf
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x44], eax
lea ecx, [0x5f0f40]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x40], ecx
lea edx, [0x5f0f40]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.00463a8a
mov eax, dword [esp + 0x68]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
cmp edx, ecx
jl 0x5a1b54
mov edx, ecx
cmp ebx, eax
je 0x5a1b68
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00464180
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
cmp edx, ebp
jg 0x5a1b84
mov ebp, edx
cmp ecx, ebx
je 0x5a1b98
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00464180
mov ecx, dword [esp + 0xe8]
mov edx, dword [ecx + 0x140]
inc edx
mov ebx, dword [ecx + 0x13c]
mov ebp, dword [ecx + 0x144]
cmp ebp, edx
jae 0x5a1c19
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5fb860]
mov dword [esp + 0x10], eax
call fcn.0044a320
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xe8]
mov dword [ebx + 0x144], edx
mov edx, dword [0x7e2780]
test edx, edx
jne 0x5a1c03
mov dword [ebx + 0x13c], eax
jmp 0x5a1c0e
lea edi, [ebx + 0x13c]
call fcn.00463860
mov edx, ecx
mov ebx, eax
mov ecx, dword [esp + 0xe8]
mov dword [ecx + 0x140], edx
lea edx, [edx + edx*2]
lea edi, [ebx + edx*8 - 0x18]
mov edx, dword [0x7e2780]
test edx, edx
jne 0x5a1c3b
lea esi, [esp + 0x6c]
call fcn.00463f64
jmp 0x5a1c55
lea eax, [0x5fb860]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.004108d0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x54]
jmp 0x5a1a54
mov edx, dword [esp + 0xec]
test edx, edx
je 0x5a1c88
mov ebp, dword [0x7e2780]
test ebp, ebp
jne 0x5a1c7b
mov dword [edx], ecx
jmp 0x5a1c88
mov eax, ecx
mov ecx, edi
mov edi, edx
call fcn.00463860
mov edi, ecx
mov ecx, dword [esp + 0xf0]
test ecx, ecx
je 0x5a1cb0
mov dword [ecx + 4], esi
mov dword [ecx + 8], ebx
mov edx, dword [0x7e2780]
test edx, edx
jne 0x5a1ca7
mov dword [ecx], edi
jmp 0x5a1cb0
mov eax, edi
mov edi, ecx
call fcn.00463860
mov byte [esp + 0xf4], 1
add esp, 0xe4
ret
mov edx, dword [esp + 0x28]
lea ebx, [edx + 1]
mov edx, dword [esp + 0xe8]
mov ebp, esi
cmp ebx, ecx
jge 0x5a1ab8
mov esi, ebp
mov ebp, dword [esp + 0xa0]
mov edi, ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x58], ebp
mov ebp, dword [edx + 0x13c]
mov edx, dword [edx + 0x140]
cmp ebx, edx
jae 0x5a1d4b
mov dword [esp + 0x28], ebx
lea edx, [ebx + ebx*2]
lea ebx, [ebp + edx*8]
lea edx, [ebp + edx*8]
mov edx, dword [edx]
cmp dword [ebx + 4], edi
je 0x5a1d17
xor edx, edx
jmp 0x5a1d3e
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.00402a50
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
mov edx, eax
mov eax, dword [esp + 0x30]
test dl, dl
je 0x5a1cbf
jmp 0x5a1a54
mov eax, ebx
mov ecx, edx
call fcn.004638e0
mov ecx, ebx
call fcn.004638e0
mov edx, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0xe8]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jge 0x5a1e5e
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x5c], ebp
mov ebp, dword [ebx + 0x13c]
mov ebx, dword [ebx + 0x140]
cmp edx, ebx
jae 0x5a210b
lea ebx, [edx + edx*2]
lea edx, [ebp + ebx*8]
lea ebx, [ebp + ebx*8]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x34]
cmp dword [edx + 4], ebp
je 0x5a1dc3
xor edx, edx
jmp 0x5a1dec
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00402a50
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x20]
mov edx, eax
xor eax, eax
test dl, dl
je 0x5a1d5b
nop
mov edx, dword [esp + 0xe8]
mov dword [edx], 4
mov dword [edx + 8], 0x1e
mov ebx, dword [0x7e2780]
test ebx, ebx
jne 0x5a1e24
lea ebx, [0x626de0]
mov dword [edx + 4], ebx
mov ebp, dword [esp + 0x2c]
cmp ebp, ecx
jmp 0x5a1e44
lea ebx, [edx + 4]
lea eax, [0x626de0]
mov ebp, edi
mov edi, ebx
call fcn.00463860
mov ebx, dword [esp + 0x2c]
cmp ebx, ecx
lea ebx, [0x626de0]
mov edi, ebp
mov ecx, dword [esp + 0x48]
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 0x18], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 0x1c], ecx
jmp 0x5a2042
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x48], eax
lea ecx, [0x5f0f40]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x44], ecx
lea edx, [0x5f0f40]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00463a8a
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb4]
cmp edx, ecx
jl 0x5a1f0c
mov edx, ecx
cmp ebx, eax
je 0x5a1f20
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00464180
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xc4]
cmp edx, ebp
jg 0x5a1f42
mov ebp, edx
cmp ecx, ebx
je 0x5a1f56
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00464180
mov ecx, dword [esp + 0xe8]
mov edx, dword [ecx + 0x140]
inc edx
mov ebx, dword [ecx + 0x13c]
mov ebp, dword [ecx + 0x144]
cmp ebp, edx
jae 0x5a1fd7
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5fb860]
mov dword [esp + 0x10], eax
call fcn.0044a320
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xe8]
mov dword [ebx + 0x144], edx
mov edx, dword [0x7e2780]
test edx, edx
jne 0x5a1fc1
mov dword [ebx + 0x13c], eax
jmp 0x5a1fcc
lea edi, [ebx + 0x13c]
call fcn.00463860
mov edx, ecx
mov ebx, eax
mov ecx, dword [esp + 0xe8]
mov dword [ecx + 0x140], edx
lea edx, [edx + edx*2]
lea edi, [ebx + edx*8 - 0x18]
mov edx, dword [0x7e2780]
test edx, edx
jne 0x5a2006
lea esi, [esp + 0x84]
call fcn.00463f64
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
jmp 0x5a202d
lea eax, [0x5fb860]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.004108d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov edx, dword [esp + 0xe8]
lea ebx, [0x626de0]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x20]
jl 0x5a20fc
lea ecx, [edi + 1]
mov ebp, dword [esp + 0x24]
cmp ebp, ecx
jae 0x5a2092
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5fb860]
mov dword [esp + 0x10], eax
call fcn.0044a320
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xe8]
mov esi, ebp
mov ebp, ebx
lea ebx, [0x626de0]
mov dword [esp + 0x20], ecx
lea ebx, [ecx + ecx*2]
lea edi, [esi + ebx*8 - 0x18]
mov ebx, dword [0x7e2780]
test ebx, ebx
jne 0x5a20b7
mov eax, esi
lea esi, [esp + 0xcc]
call fcn.00463f64
jmp 0x5a20eb
mov dword [esp + 0x60], esi
mov dword [esp + 0x38], ebp
lea eax, [0x5fb860]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xcc]
mov dword [esp + 8], eax
call fcn.004108d0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0xe8]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, ebp
jmp 0x5a1917
mov byte [esp + 0xf4], 0
add esp, 0xe4
ret
mov eax, edx
mov ecx, ebx
call fcn.004638e0
nop
call fcn.00462450
jmp fcn.005a1790