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

Disassembly:
sub esp, 0x10
push ebx
push esi
mov al, byte [ecx + 0x48]
push edi
push ebp
mov esi, ecx
mov bl, byte [esp + 0x24]
cmp al, bl
je 0x4afc81
cmp al, 3
ja 0x4af956
cmp bl, 7
jb 0x4af956
mov eax, dword [esi]
call dword [eax + 0x60]
cmp bl, 3
jb 0x4af9a8
mov al, byte [esi + 0x48]
cmp al, 3
jae 0x4af969
mov ecx, esi
call fcn.004ac570
cmp bl, 3
jb 0x4af9a8
mov al, byte [esi + 0x48]
cmp al, 2
jne 0x4af9a8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4af9a8
mov edi, dword [esi]
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 0xc]
push eax
mov ecx, esi
call dword [edi + 0xd4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x4af9a8
push 0xffffffffffffffff
mov eax, dword [esi + 0xc]
push 1
mov ecx, esi
push eax
call dword [edi + 0xd0]
mov al, byte [esi + 0x48]
cmp al, 7
jae 0x4af9d7
cmp bl, 7
jne 0x4af9d7
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4af9d7
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x4af9d7
push 0xffffffffffffffff
mov eax, dword [esi + 0xc]
push 1
mov ebp, dword [esi]
push eax
mov ecx, esi
call dword [ebp + 0xd4]
mov byte [esi + 0x48], bl
cmp bl, 3
jne 0x4afc66
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x78]
cmp ecx, eax
jne 0x4afc66
xor edi, edi
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x4afc66
mov eax, dword [esi + 0x68]
cmp eax, 1
jle 0x4afc66
mov dword [esp + 0x1c], 0xffffffff
test eax, eax
jle 0x4afc66
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x70]
dec eax
cmp eax, edi
jge 0x4afa86
lea eax, [edi*4 + 4]
lea ebx, [edi + 1]
push eax
call fcn.0052f700
mov dword [esp + 0x14], eax
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x4afa86
mov ecx, dword [esi + 0x70]
cmp ecx, eax
jle 0x4afa70
xor edx, edx
mov ecx, dword [esp + 0x10]
cmp eax, ebx
jge 0x4afa70
mov ebp, dword [esi + 0x64]
add edx, 4
add ecx, 4
inc eax
mov ebp, dword [ebp + edx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [esi + 0x70]
cmp ebp, eax
jg 0x4afa54
mov eax, dword [esi + 0x64]
push eax
call fcn.0052f720
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x64], eax
mov dword [esi + 0x70], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 4]
cmp dword [eax + ecx], edx
je 0x4afc4f
mov eax, dword [esi + 0x70]
dec eax
cmp eax, edi
jge 0x4afafd
lea eax, [edi*4 + 4]
lea ebx, [edi + 1]
push eax
call fcn.0052f700
mov dword [esp + 0x14], eax
add esp, 4
xor ecx, ecx
test eax, eax
je 0x4afafd
mov eax, dword [esi + 0x70]
cmp eax, ecx
jle 0x4afae7
xor edx, edx
mov eax, dword [esp + 0x10]
cmp ebx, ecx
jle 0x4afae7
mov ebp, dword [esi + 0x64]
add edx, 4
add eax, 4
inc ecx
mov ebp, dword [ebp + edx - 4]
mov dword [eax - 4], ebp
mov ebp, dword [esi + 0x70]
cmp ebp, ecx
jg 0x4afacb
mov eax, dword [esi + 0x64]
push eax
call fcn.0052f720
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x64], eax
mov dword [esi + 0x70], ebx
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
nop
mov edx, dword [eax + ecx]
mov eax, dword [esi + 0xc]
push edx
mov ecx, dword [eax + 0x3c]
call fcn.004d0430
mov dword [esp + 0x18], eax
test eax, eax
je 0x4afc4f
mov cl, byte [eax + 0x48]
cmp cl, 2
ja 0x4afc4f
mov ecx, eax
call fcn.004b0f30
test eax, eax
je 0x4afc4f
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x4afbb6
mov eax, dword [esi + 0x70]
dec eax
cmp eax, edi
jge 0x4afba8
lea eax, [edi*4 + 4]
lea ebx, [edi + 1]
push eax
call fcn.0052f700
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
je 0x4afba8
xor ecx, ecx
mov eax, dword [esi + 0x70]
cmp eax, ecx
jle 0x4afb92
mov eax, dword [esp + 0x10]
cmp ebx, ecx
jle 0x4afb92
mov edx, dword [esi + 0x64]
add ebp, 4
add eax, 4
inc ecx
mov edx, dword [edx + ebp - 4]
mov dword [eax - 4], edx
mov edx, dword [esi + 0x70]
cmp edx, ecx
jg 0x4afb76
mov eax, dword [esi + 0x64]
push eax
call fcn.0052f720
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x64], eax
mov dword [esi + 0x70], ebx
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x78], edx
mov eax, dword [esi + 0x70]
dec eax
cmp eax, edi
jge 0x4afc25
lea eax, [edi*4 + 4]
lea ebx, [edi + 1]
push eax
call fcn.0052f700
mov dword [esp + 0x14], eax
add esp, 4
xor edx, edx
test eax, eax
je 0x4afc25
xor eax, eax
mov ecx, dword [esi + 0x70]
cmp ecx, eax
jle 0x4afc0f
mov ecx, dword [esp + 0x10]
cmp eax, ebx
jge 0x4afc0f
mov ebp, dword [esi + 0x64]
add edx, 4
add ecx, 4
inc eax
mov ebp, dword [ebp + edx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [esi + 0x70]
cmp ebp, eax
jg 0x4afbf3
mov eax, dword [esi + 0x64]
push eax
call fcn.0052f720
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x64], eax
mov dword [esi + 0x70], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x64]
mov edx, dword [esp + 0x1c]
cmp dword [eax + ecx], edx
jne 0x4afc4f
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x12c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004b0f30
mov ecx, eax
call fcn.00453a20
mov eax, dword [esp + 0x14]
inc edi
add eax, 4
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x14], eax
cmp ecx, edi
jg 0x4afa1e
mov al, byte [esi + 0x49]
test al, al
je 0x4afc81
mov al, byte [esi + 0x48]
cmp al, 2
je 0x4afc81
cmp al, 6
je 0x4afc81
push 0
mov ecx, esi
call fcn.004b1a90
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4