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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 4]
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
cmp eax, 0x20
jbe 0x4af869
mov eax, 0x20
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x4af8da
mov eax, 0x20
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4af8af
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
mov ecx, edi
test edi, edi
jne 0x4af894
mov eax, dword [ebp + 8]
add ebx, 0x28
sub eax, 1
mov dword [ebp + 8], eax
jne 0x4af888
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x4af8d5
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea edi, [esi + eax*8]
lea eax, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [esi + 0x58], eax
lea eax, [edi + 0x20]
cmp dword [eax], 0
push eax
je 0x4af948
call fcn.004b0b20
jmp 0x4af94d
call fcn.004b0a60
mov ebx, eax
add esp, 4
add edi, 0x1c
test ebx, ebx
jne 0x4afa06
push edi
cmp dword [edi], eax
je 0x4af969
call fcn.004b0b20
jmp 0x4af96e
call fcn.004b0a60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4afa06
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
call fcn.004b0b50
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4afa06
push edi
call fcn.004b0b50
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4afa06
push dword [ebp + 8]
call fcn.004b09a0
mov ebx, eax
test ebx, ebx
je 0x4afa18
mov dword [esi + 0x44], 0
lea edi, [esi + 0xe4]
mov dword [ebp - 4], 0x20
cmp dword [edi - 4], 0
lea eax, [edi + 4]
mov dword [ebp + 8], eax
je 0x4af9e7
push eax
call fcn.004b0b50
push edi
call fcn.004b0b50
lea eax, [edi - 4]
push eax
call fcn.004b0ce0
add esp, 0xc
jmp 0x4af9ea
mov dword [ebp + 8], eax
push edi
call fcn.004b0b80
push dword [ebp + 8]
call fcn.004b0b80
add esp, 8
add edi, 0x28
sub dword [ebp - 4], 1
jne 0x4af9c1
test ebx, ebx
jle 0x4afa11
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
je 0x4afa18
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], 0
jne 0x4afa31
cmp dword [esi + 0x40], 0
jne 0x4afa31
cmp dword [esi + 0x3c], 0
jne 0x4afa31
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x44]
neg eax
pop edi
sbb eax, eax
not eax
pop esi
and eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret