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

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
xor eax, eax
xor ebx, ebx
mov ecx, 0x11
lea edi, [esp + 0x80]
mov dword [esp + 0x7c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc8]
mov esi, dword [eax + 0x40]
mov edi, dword [eax + 0x44]
mov eax, dword [esp + 0xec]
xor ecx, ecx
xor edx, edx
cmp eax, ebx
jne 0x4aff02
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
lea eax, [esp + 0x28]
jmp 0x4aff1f
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xd4]
cmp ecx, ebx
jne 0x4aff38
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
jmp 0x4aff79
mov edx, dword [ecx]
test edx, edx
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
jge 0x4aff5f
mov dword [esp + 0x18], 0
test ebx, ebx
jge 0x4aff6b
mov dword [esp + 0x1c], 0
cmp ebp, esi
jle 0x4aff73
mov dword [esp + 0x20], esi
xor ebx, ebx
cmp ecx, edi
jle 0x4aff7d
mov dword [esp + 0x24], edi
mov edi, dword [eax]
mov esi, dword [eax + 8]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x3c], ecx
sub esi, edi
mov edi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
add ecx, edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xe0]
push edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
call fcn.00416540
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xb8], eax
mov eax, dword [0x566d10]
mov cl, al
mov edx, 0xff
sar edx, cl
mov cl, byte [0x566d08]
add esp, 4
shl edx, cl
mov cl, ah
mov eax, 0xff
mov dword [esp + 0xb8], edx
mov edx, 0xff
sar edx, cl
mov cl, byte [0x566d09]
shl edx, cl
mov cl, byte [0x566d12]
sar eax, cl
mov cl, byte [0x566d0a]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0xe8]
shl eax, cl
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xf8]
cmp eax, ebx
jne 0x4b0091
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xcc]
push ecx
push edx
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x4c]
lea edi, [esp + 0x38]
lea esi, [esp + 0x8c]
call fcn.004afda0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
cmp dword [eax], ebx
mov byte [esp + 0x13], 1
mov dword [esp + 0x38], ebx
jbe 0x4b0190
mov dword [esp + 0x14], ebx
jmp 0x4b00b0
mov eax, dword [esp + 0xf8]
nop
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x14]
add edx, ecx
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004a61c0
add esp, 0xc
test al, al
je 0x4b016b
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add esi, eax
mov eax, dword [esp + 0x78]
add ebp, ecx
mov ecx, dword [esp + 0xf4]
push ecx
mov ecx, dword [esp + 0xcc]
add edi, edx
mov edx, dword [esp + 0xe8]
add ebx, eax
mov eax, dword [esp + 0xd0]
push edx
push eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
push ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x6c]
lea esi, [esp + 0x8c]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebx
call fcn.004afda0
add esp, 0x10
test al, al
mov byte [esp + 0x13], al
je 0x4b0190
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add edx, 0x10
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xf8]
mov ecx, dword [edx]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jb 0x4b00a8
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret