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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x5af99e
sub esp, 0xa8
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 4]
cmp eax, 0x3e8
jge 0x5af96e
mov dword [esp + 0x18], eax
lea ecx, [0x5f4a00]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], edx
lea ebx, [0x5f4a00]
mov dword [esp], ebx
mov ebp, dword [esp + 0x18]
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x88]
mov ebx, eax
xor eax, eax
call fcn.0044b8b8
lea edi, [esp + 0x88]
call fcn.0044b8b8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ebx
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], ecx
lea edx, [0x5f4a00]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00437c50
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
lea ebx, [0x5f4a00]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x68]
mov ebx, eax
xor eax, eax
call fcn.0044b8b8
lea edi, [esp + 0x68]
call fcn.0044b8b8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + 4]
lea edx, [0x5e6420]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x34], edx
lea edi, [esp + 0x48]
mov ebx, eax
xor eax, eax
call fcn.0044b8b8
lea eax, [0x5b0890]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + 0xc]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
cmp ecx, ebp
jb 0x5af936
jb 0x5af8fe
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 4]
lea ecx, [0x5f2cc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x38], edx
jmp 0x5af7c4
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, ebp
mov ecx, esi
mov edx, ebx
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
cmp ebx, ebp
jae 0x5af84b
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xa4]
cmp esi, ebx
jae 0x5af989
mov ebx, dword [ebp + esi*4]
lea ebp, [esi + 1]
mov dword [esp + 0xa4], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov ebx, dword [ebp]
mov edx, ebp
call ebx
movzx eax, byte [esp + 0x10]
test al, al
jne 0x5af7b2
mov ecx, dword [0x7ec608]
mov dword [esp + 0xac], ecx
mov ecx, dword [0x7ec608]
mov edx, dword [esp + 0xac]
cmp edx, ecx
je 0x5af8e9
mov ecx, dword [edx + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
xor eax, eax
jmp 0x5af87c
inc eax
mov ebp, dword [esp + 0x30]
mov ecx, ebp
mov ebx, edi
cmp eax, ecx
jge 0x5af8e9
cmp eax, ebx
jae 0x5af982
mov ebp, dword [esp + 0xac]
mov esi, dword [ebp]
mov ebp, dword [ebp + 4]
mov edi, ebx
lea ebx, [eax + eax*2]
mov ecx, dword [edx + ebx*4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + ebx*4 + 4]
mov ebx, dword [edx + ebx*4 + 8]
cmp eax, ebp
jae 0x5af982
lea ebp, [eax + eax*8]
mov dword [esi + ebp*4 + 0x10], ecx
mov dword [esi + ebp*4 + 0x14], ebx
lea ecx, [esi + ebp*4 + 0xc]
mov ebx, dword [0x7fe8b0]
test ebx, ebx
jne 0x5af8d4
mov ecx, dword [esp + 0x40]
mov dword [esi + ebp*4 + 0xc], ecx
jmp 0x5af873
mov ebx, edi
mov edi, ecx
mov ebp, eax
mov eax, dword [esp + 0x40]
call fcn.0044b7c0
mov eax, ebp
mov edi, ebx
jmp 0x5af873
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb0], eax
add esp, 0xa8
ret
mov dword [ebx + ecx*4], 0
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xa0]
cmp esi, ebx
jae 0x5af990
mov dword [ebp + esi*4], ecx
mov ecx, dword [esp + 0xa0]
inc ecx
mov dword [esp + 0xa0], ecx
jmp 0x5af778
mov esi, dword [ebx + ecx*4]
test esi, esi
jae 0x5af96a
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
cmp esi, edi
jae 0x5af997
mov edx, dword [edx + esi*4]
cmp edx, ecx
sete dl
test dl, dl
jne 0x5af778
cmp ecx, ebp
mov edx, dword [esp + 0x34]
jmp 0x5af772
xor edx, edx
jmp 0x5af957
mov eax, dword [0x7ec608]
mov dword [esp + 0xb0], eax
add esp, 0xa8
ret
call fcn.00425910
ud2
call fcn.00425910
ud2
call fcn.00425910
ud2
call fcn.00425910
ud2
call fcn.0044a060
jmp fcn.005af520