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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x74]
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
mov esi, dword [esp + 0x88]
cmp ebx, 8
je 0x4af830
cmp ebx, 0xf
jle 0x4af83c
mov ebp, ebx
sar ebp, 1
mov ecx, dword [esp + 0x24]
add ecx, ebp
mov eax, dword [esp + 0x2c]
add eax, ebp
mov dword [esp + 0x38], eax
mov edx, ebp
sub edx, ecx
mov dword [esp + 0x4c], edx
lea eax, [ebp*4]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 0x20], ecx
call fcn.0043c4b0
mov edi, eax
mov eax, dword [esp + 0x38]
sub eax, ebp
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x34]
add edx, dword [esp + 0x3c]
mov dword [esp + 0x44], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0043c4b0
lea edx, [edi + edi*2]
lea eax, [eax + edx + 4]
cmp eax, 8
mov ecx, dword [esp + 0x20]
jbe switch.0x004af890
xor eax, eax
mov dword [esp + 0x40], 0
cmp ebp, 8
je 0x4af956
lea edx, [esi + ebx*8]
test eax, eax
jne 0x4af8c0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x3c]
lea eax, [esi + ecx]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
lea eax, [esi + ebx*4]
mov dword [esp], eax
mov dword [esp + 0x20], edx
call fcn.004af5c0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 0x20], edx
call fcn.004af5c0
lea edi, [ebx*4]
mov eax, dword [esp + 0x28]
add eax, edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x20], eax
call fcn.004af5c0
lea edi, [esi + edi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0043f1a0
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4af8a0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0043f330
mov esi, dword [esp + 0x24]
sub esi, eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.0043f1a0
add esi, eax
je 0x4af87a
lea ebx, [ebp + ebx]
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ebx*4]
mov eax, dword [edx]
add eax, esi
mov dword [edx], eax
cmp esi, eax
jbe 0x4af87a
lea esi, [esi]
lea edi, [edi]
add edx, 4
mov eax, dword [edx]
inc eax
mov dword [edx], eax
test eax, eax
jne 0x4af87a
add edx, 4
mov eax, dword [edx]
inc eax
mov dword [edx], eax
test eax, eax
je 0x4af810
jmp 0x4af87a
test eax, eax
jne 0x4af83c
test edx, edx
je 0x4afbf0
mov eax, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x24]
add eax, ebx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004aefb0
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x24]
js 0x4afba0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
jmp dword [eax*4 + 0x54cd58]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], edi
call fcn.0043f1a0
mov edx, dword [esp + 0x24]
lea esi, [eax + edx]
jmp 0x4af7cd
lea eax, [ebx*4]
mov dword [esp + 0x38], eax
lea edi, [esi + eax]
cmp eax, 4
jae 0x4af910
test byte [esp + 0x38], 2
jne 0x4af8f0
test byte [esp + 0x38], 1
je 0x4af707
mov byte [edi], 0
jmp 0x4af707
mov word [edi], 0
add edi, 2
test byte [esp + 0x38], 1
je 0x4af707
jmp 0x4af8e5
test edi, 1
jne 0x4afc7e
test edi, 2
jne 0x4afc6c
mov ecx, dword [esp + 0x38]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x4af8d3
mov eax, 1
mov dword [esp + 0x40], 0
cmp ebp, 8
jne 0x4af6c2
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4af6c2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x4af6c2
test eax, eax
jne 0x4afc20
lea ecx, [ebx*4]
mov dword [esp + 0x24], ecx
lea edi, [esi + ecx]
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0043f470
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call fcn.0043f470
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x20], eax
call fcn.0043f470
mov eax, dword [esp + 0x20]
jmp 0x4af78b
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.004af120
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
mov dword [esp], eax
call fcn.004af120
jmp case.default.0x4af890
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004af120
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x3c]
lea eax, [esi + ecx]
mov dword [esp], eax
call fcn.004af120
xor eax, eax
mov dword [esp + 0x40], 1
jmp 0x4af6b9
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.004af120
mov eax, ebp
sub eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
mov dword [esp], eax
call fcn.004af120
xor eax, eax
mov dword [esp + 0x40], 0
jmp 0x4af6b9
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.004af120
mov eax, ebp
sub eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
mov dword [esp], eax
call fcn.004af120
xor eax, eax
mov dword [esp + 0x40], 1
jmp 0x4af6b9
shl edx, 2
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ebx*2]
add eax, dword [esp + 0x2c]
neg edx
mov ecx, dword [esp + 0x28]
lea edi, [ecx + eax*4]
cmp edx, 4
jae 0x4afc00
test dl, 2
jne 0x4afbe0
and edx, 1
je 0x4af87a
mov byte [edi], 0
jmp 0x4af87a
mov word [edi], 0
add edi, 2
jmp 0x4afbc1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0043f470
test edi, 1
jne 0x4afc9c
test edi, 2
jne 0x4afc8c
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x4afbbc
lea ecx, [ebx*4]
mov dword [esp + 0x24], ecx
add ecx, esi
mov dword [esp + 0x2c], ecx
mov edi, ecx
mov edx, 0x40
test cl, 1
jne 0x4afcb3
test edi, 2
jne 0x4afca6
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
test dl, 2
je 0x4afc5b
mov word [edi], 0
add edi, 2
and edx, 1
je 0x4afc63
mov byte [edi], 0
mov edi, dword [esp + 0x2c]
jmp 0x4af99b
mov word [edi], 0
add edi, 2
sub dword [esp + 0x38], 2
jmp 0x4af928
mov byte [edi], 0
inc edi
dec eax
mov dword [esp + 0x38], eax
jmp 0x4af91c
mov word [edi], 0
add edi, 2
sub edx, 2
jmp 0x4afc14
mov byte [edi], 0
inc edi
dec edx
jmp 0x4afc0c
mov word [edi], 0
add edi, 2
sub edx, 2
jmp 0x4afc45
mov byte [ecx], 0
inc edi
mov dl, 0x3f
jmp 0x4afc3d