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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4af2f8
sub esp, 0x74
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x4af149
inc ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x1e], dl
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x70]
mov ebp, dword [esp + 0x20]
cmp ebp, ebx
jge 0x4af11f
mov edx, dword [0x591580]
mov ebx, dword [0x591584]
cmp ebp, ebx
jae 0x4af2ee
movzx edx, byte [edx + ebp]
mov byte [esp + 0x1f], dl
cmp dl, 0xa
jne 0x4af112
mov ebx, dword [esp + 0x5c]
add ebx, 1
mov edx, dword [esp + 0x50]
adc edx, 0
mov dword [esp + 0x50], edx
movzx edx, byte [0x5a1248]
test dl, dl
jne 0x4af09a
movzx edx, byte [esp + 0x1e]
jmp 0x4af02c
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
movzx eax, byte [esp + 0x1f]
movzx eax, al
mov dword [esp], eax
call fcn.004608f0
movzx eax, byte [esp + 4]
test al, al
je 0x4af0e4
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov edi, ecx
mov esi, edx
mov ecx, dword [esp + 0x58]
mov edx, eax
mov eax, dword [esp + 0x54]
jmp 0x4af02c
movzx edx, byte [esp + 0x1e]
test dl, dl
je 0x4af100
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, ecx
mov ecx, eax
mov eax, 1
jmp 0x4af0c9
mov edx, dword [esp + 0x3c]
add edx, 1
mov ecx, dword [esp + 0x38]
adc ecx, 0
mov eax, edx
jmp 0x4af0f5
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
jmp 0x4af084
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
test edx, edx
jne 0x4af20a
mov eax, ecx
mov ecx, dword [esp + 0x54]
mov edx, ebx
mov ebx, ebp
movzx ebp, byte [esp + 0x1e]
mov ebp, esi
mov esi, edi
mov edi, ebp
movzx ebp, byte [esp + 0x1e]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
xchg ebp, eax
mov byte [esp + 0x1e], al
xchg ebp, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ebx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov edx, dword [0x591580]
mov ebx, dword [0x591584]
mov ebp, dword [0x591588]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0048df90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov edx, ecx
add ecx, eax
mov dword [esp + 0x58], ecx
mov ebx, eax
sar eax, 0x1f
add edx, ebx
mov edx, dword [esp + 0x54]
adc eax, edx
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x70], ebp
movzx esi, byte [0x5a1248]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4af2c8
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
jmp 0x4af045
cmp dword [0x591438], edx
je 0x4af24f
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
add esp, 0x74
ret
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov ecx, dword [0x59143c]
mov dword [esp + 8], ecx
call fcn.00402e60
movzx eax, byte [esp + 0xc]
test al, al
je 0x4af2a7
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x70], edx
xor edx, edx
jmp 0x4af212
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
jmp 0x4af212
movzx esi, byte [0x5a1244]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4af1d3
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
jmp 0x4af127
mov eax, ebp
mov ecx, ebx
call fcn.0044ab10
nop
call fcn.00449350
jmp fcn.004af000