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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6180c8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x6f5cf4]
mov ecx, eax
inc eax
mov dword [esp + 0x3c], 0x6f5cf4
mov dword [0x6f5cf4], eax
test ecx, ecx
je 0x5aa7c2
mov al, 1
jmp 0x5aa7c4
xor al, al
mov byte [esp + 0x40], al
xor ecx, ecx
mov dword [esp + 0xa0], ecx
test al, al
jne 0x5aaad0
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
inc dword [esp + 0x18]
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x5aa80a
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea eax, [esp + 0x44]
jmp 0x5aa835
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x21c]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
lea eax, [esp + 0x4c]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
cmp dword [esi + 0x34], edi
jne 0x5aa84f
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
jmp 0x5aa8b5
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x8c]
lea eax, [esp + 0x7c]
push eax
call edx
mov edi, dword [esi + 0x34]
mov ebp, dword [esp + 0x7c]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, ebx
cdq
idiv edi
mov dword [esi + 0x44], ecx
mov edi, eax
cmp edi, ecx
jge 0x5aa888
cmp ebx, ebp
jl 0x5aa884
inc edi
cmp edi, ecx
jl 0x5aa892
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
jmp 0x5aa8b5
cmp edi, 1
jge 0x5aa89c
mov edi, 1
mov eax, dword [esi + 0x3c]
sub ecx, edi
cmp eax, ecx
jle 0x5aa8aa
mov dword [esi + 0x3c], ecx
jmp 0x5aa8b5
test eax, eax
jge 0x5aa8b5
mov dword [esi + 0x3c], 0
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x178]
push 1
push edx
mov edx, dword [esi + 0x3c]
push edi
push edx
push 4
call eax
push edi
push 4
mov ecx, esi
call fcn.005a9f50
cmp dword [esi + 0x28], 0
je 0x5aa8f3
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
lea eax, [esp + 0x54]
jmp 0x5aa91e
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x21c]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x28]
push edx
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
lea eax, [esp + 0x5c]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor edi, edi
mov dword [esp + 0x8c], ecx
cmp dword [esi + 0x38], edi
jne 0x5aa939
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
jmp 0x5aa9a5
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x8c]
lea eax, [esp + 0x84]
push eax
call edx
mov edi, dword [esi + 0x38]
mov ebp, dword [esp + 0x88]
lea eax, [edi + ebp - 1]
cdq
idiv edi
mov ecx, eax
mov eax, ebx
cdq
idiv edi
mov dword [esi + 0x48], ecx
mov edi, eax
cmp edi, ecx
jge 0x5aa978
cmp ebx, ebp
jl 0x5aa974
inc edi
cmp edi, ecx
jl 0x5aa982
xor edi, edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
jmp 0x5aa9a5
cmp edi, 1
jge 0x5aa98c
mov edi, 1
mov eax, dword [esi + 0x40]
sub ecx, edi
cmp eax, ecx
jle 0x5aa99a
mov dword [esi + 0x40], ecx
jmp 0x5aa9a5
test eax, eax
jge 0x5aa9a5
mov dword [esi + 0x40], 0
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x178]
push 1
push edx
mov edx, dword [esi + 0x40]
push edi
push edx
push 8
call eax
push edi
push 8
mov ecx, esi
call fcn.005a9f50
cmp dword [esi + 0x28], 0
je 0x5aa9e3
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
lea eax, [esp + 0x64]
jmp 0x5aaa0e
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x21c]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x30]
push edx
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
lea eax, [esp + 0x6c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, dword [esp + 0x74]
jne 0x5aaa1d
cmp eax, ebx
je 0x5aaa28
cmp dword [esp + 0x18], 5
jl 0x5aa7eb
mov edx, dword [esi + 0x3c]
mov edi, dword [esp + 0x34]
cmp edi, edx
je 0x5aaa7c
cmp byte [esi + 0x54], 0
je 0x5aaa5f
cmp dword [esi + 0x28], 0
je 0x5aaa44
lea eax, [esi + 0x20]
jmp 0x5aaa46
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx]
sub edi, edx
imul edi, dword [esi + 0x34]
push eax
mov eax, dword [ebx + 0x18c]
push 0
push edi
call eax
jmp 0x5aaa7c
cmp dword [esi + 0x28], 0
je 0x5aaa6a
lea eax, [esi + 0x20]
jmp 0x5aaa6c
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x118]
push 1
call eax
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x38]
cmp edi, edx
je 0x5aaad0
cmp byte [esi + 0x55], 0
je 0x5aaab3
cmp dword [esi + 0x28], 0
je 0x5aaa98
lea eax, [esi + 0x20]
jmp 0x5aaa9a
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx]
sub edi, edx
imul edi, dword [esi + 0x38]
mov edx, dword [ebx + 0x18c]
push eax
push edi
push 0
call edx
jmp 0x5aaad0
cmp dword [esi + 0x28], 0
je 0x5aaabe
lea eax, [esi + 0x20]
jmp 0x5aaac0
xor eax, eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x118]
push 1
call eax
dec dword [0x6f5cf4]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret