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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5afb0e
sub esp, 0x54
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5afb02
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
cmp eax, ebx
jae 0x5afafb
mov edx, dword [edx + eax*4]
mov ebx, dword [ecx + 0xc]
mov ebp, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x2c], esi
cmp edx, esi
jae 0x5af5d8
shl edx, 3
mov edx, dword [ebx + edx]
cmp eax, edx
je 0x5afaef
lea edx, [esi + 1]
cmp edx, ebp
ja 0x5afae8
mov dword [ecx + 0x10], edx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 0x48], ebx
cmp esi, edx
jae 0x5afae1
mov edx, esi
shl esi, 3
mov dword [esp + 0x34], esi
lea ebp, [ebx + edx*8 + 4]
mov dword [esp + 0x44], ebp
mov edi, dword [0x77c810]
test edi, edi
jne 0x5afab4
mov dword [ebx + esi + 4], 0
mov dword [ebx + esi], eax
mov edi, dword [ecx]
mov ebp, dword [ecx + 4]
cmp eax, ebp
jae 0x5afaad
mov dword [edi + eax*4], edx
mov edx, dword [esp + 0x58]
mov ebp, dword [edx + 4]
mov edi, dword [ebp + 4]
mov ebp, dword [ebp]
mov dword [esp + 0x40], ebp
cmp eax, edi
jae 0x5afaa6
lea eax, [eax + eax*2]
lea edi, [ebp + eax*8]
mov dword [esp + 0x3c], edi
shl eax, 3
mov dword [esp + 0x30], eax
movzx ebx, byte [ebp + eax]
cmp bl, 3
ja 0x5af86c
cmp bl, 1
jbe 0x5af7c7
cmp bl, 2
jne 0x5af75f
mov ebx, dword [ebp + eax + 8]
mov esi, dword [esp + 0x6c]
cmp ebx, esi
jge 0x5af718
jae 0x5af711
mov edi, dword [esp + 0x68]
mov esi, dword [edi + ebx*4]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x64]
mov dword [edi + ebx*4], esi
mov ebx, dword [ebp + eax + 4]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x18], edx
movzx edx, byte [esp + 0x74]
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], 0
call fcn.005af580
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + eax + 8]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jae 0x5af70a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
add esp, 0x54
ret
call fcn.00424660
ud2
call fcn.00424660
ud2
mov eax, dword [ebp + eax + 4]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x74]
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
call fcn.005af580
mov eax, dword [esp + 0x24]
jmp 0x5af702
mov ebx, dword [ebp + eax + 8]
movzx esi, byte [esp + 0x74]
mov edi, esi
xchg esi, ebx
not ebx
xchg esi, ebx
xchg esi, eax
test al, bl
xchg esi, eax
je 0x5af77c
mov eax, dword [esp + 0x78]
jmp 0x5af702
mov eax, dword [ebp + eax + 4]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
xchg edi, eax
mov byte [esp + 0x1c], al
xchg edi, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
call fcn.005af580
mov eax, dword [esp + 0x24]
jmp 0x5af702
mov ebx, dword [ebp + eax + 4]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0xc], ebx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x18], edi
movzx edi, byte [esp + 0x74]
xchg edi, eax
mov byte [esp + 0x1c], al
xchg edi, eax
mov edi, dword [esp + 0x78]
mov dword [esp + 0x20], edi
call fcn.005af580
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + ecx + 8]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
movzx ecx, byte [esp + 0x74]
mov byte [esp + 0x1c], cl
mov dword [esp + 0x20], eax
call fcn.005af580
mov eax, dword [esp + 0x24]
jmp 0x5af702
cmp bl, 5
ja 0x5afa08
cmp bl, 4
jne 0x5af9ff
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5af926
mov ecx, dword [0x77c810]
test ecx, ecx
jne 0x5af90d
mov dword [eax], edi
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jle 0x5af8cb
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
test edx, edx
jbe 0x5af906
mov ebp, dword [esp + 0x68]
cmp ebx, ebp
je 0x5af8cb
cmp edx, ecx
jle 0x5af902
mov dword [esp], ebx
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0044a7d0
mov eax, dword [0x77c810]
test eax, eax
jne 0x5af8ec
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
mov dword [edx + eax + 4], ecx
xor eax, eax
jmp 0x5af702
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call fcn.0040d580
jmp 0x5af8e5
mov ecx, edx
jmp 0x5af8b8
call fcn.00424660
ud2
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0040d580
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x34]
jmp 0x5af896
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x48]
mov ebx, dword [edx + 0x44]
test ecx, ecx
jle 0x5af982
lea ebp, [ecx - 1]
cmp ebp, ecx
jae 0x5af97b
mov ecx, dword [ebx + ecx*4 - 4]
cmp ebp, eax
ja 0x5af974
mov dword [edx + 0x48], ebp
mov dword [esp + 0x38], ecx
test byte [ecx], al
mov eax, dword [0x77c810]
test eax, eax
jne 0x5af95e
mov dword [ecx], edi
mov eax, ecx
jmp 0x5af896
mov dword [esp], ecx
mov dword [esp + 4], edi
call fcn.0040d580
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x5af957
call fcn.004246c0
ud2
call fcn.00424660
ud2
lea eax, [0x61e260]
mov dword [esp], eax
call fcn.0040cd50
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x58]
lea ebx, [0x60c540]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00437130
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x38]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [0x77c810]
lea ecx, [ebx + 4]
test eax, eax
jne 0x5af9ed
mov dword [ebx + 4], edx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov ecx, ebx
jmp 0x5af945
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0040d580
mov ebx, dword [esp + 0x38]
jmp 0x5af9de
mov eax, dword [esp + 0x78]
jmp 0x5af702
cmp bl, 6
je 0x5afa58
lea eax, [ebx - 7]
cmp al, 3
ja 0x5afa1a
jmp 0x5af87e
lea eax, [0x64c5d5]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 9
lea eax, [0x60cc40]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0040a860
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004254c0
ud2
mov eax, dword [ebp + eax + 4]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x74]
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
call fcn.005af580
mov eax, dword [esp + 0x24]
jmp 0x5af702
call fcn.00424660
ud2
call fcn.00424660
ud2
mov dword [esp], ebp
mov dword [esp + 4], 0
call fcn.0040d580
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
jmp 0x5af61c
call fcn.00424660
ud2
call fcn.004246c0
ud2
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
add esp, 0x54
ret
call fcn.00424660
ud2
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
add esp, 0x54
ret
call fcn.00448420
jmp fcn.005af580