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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a4c11
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
test edx, edx
jle 0x5a4bfe
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
xor edi, edi
xor edi, edi
mov dword [esp + 0x20], edi
xor edi, edi
jmp 0x5a4a0f
mov edi, dword [esp + 0x58]
add edi, 6
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
mov ecx, edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], edi
movzx eax, word [ecx]
movzx edx, word [ecx + 2]
mov dword [esp + 0x38], edx
movzx ecx, word [ecx + 4]
cmp ecx, 1
jne 0x5a4b98
dec eax
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x5a4b67
lea eax, [edx + 1]
lea ecx, [edi + 1]
mov edx, dword [esp + 0x40]
cmp ecx, edx
jl 0x5a49f6
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jle 0x5a4aa3
mov dword [esp + 0x40], ecx
xor edi, edi
jmp 0x5a4a6f
mov edi, dword [esp + 0x54]
add edi, 0xc
mov edx, edi
mov edi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], edi
mov ecx, dword [edx + 8]
mov edi, dword [edx + 4]
mov dword [esp + 0x34], edi
mov edx, dword [edx]
cmp ecx, 1
jne 0x5a4b0e
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x5a4ae4
lea eax, [edi + 1]
mov ecx, dword [esp + 0x3c]
inc ecx
mov edx, dword [esp + 0x40]
cmp ecx, edx
jl 0x5a4a60
cmp eax, 0x10ffff
jle 0x5a4aba
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebx
add esp, 0x5c
ret
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x10ffff
call fcn.005a41f0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x5a4aaa
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.005a41f0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
jmp 0x5a4a93
mov dword [esp + 0x30], ecx
jmp 0x5a4b26
lea eax, [ecx + edx]
inc edx
mov edi, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, edx
mov edx, dword [esp + 0x44]
cmp edx, edi
jg 0x5a4a96
lea edi, [edx - 1]
cmp eax, edi
jg 0x5a4b14
mov dword [esp + 0x28], edx
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
call fcn.005a41f0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
jmp 0x5a4b14
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.005a41f0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
jmp 0x5a4a3c
mov dword [esp + 0x2c], ecx
jmp 0x5a4bb4
lea edx, [ecx + eax]
inc eax
mov edi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, edx
mov edx, dword [esp + 0x38]
cmp eax, edx
jg 0x5a4bf5
lea edi, [eax - 1]
mov edx, dword [esp + 0x20]
cmp edx, edi
jg 0x5a4b9e
mov dword [esp + 0x24], eax
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
call fcn.005a41f0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
jmp 0x5a4b9e
mov eax, dword [esp + 0x20]
jmp 0x5a4a3f
xor eax, eax
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x5a4a4a
call fcn.0044a060
jmp fcn.005a49b0