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

Disassembly:
push 0xffffffffffffffff
push 0x558ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6397d4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, ecx
cmp dword [0x648a5c], 0
je case.0x4af60c.2
mov ecx, dword [0x63af58]
test ecx, ecx
je case.0x4af60c.2
movzx edx, word [esp + 0x40]
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
push eax
call fcn.004589e0
mov esi, eax
test esi, esi
je case.0x4af60c.2
mov ecx, dword [esi + 0x330]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
call edx
movzx eax, ax
push eax
call fcn.00509790
add esp, 4
cmp eax, 0x12
ja case.0x4af60c.2
movzx eax, byte [eax + 0x4af840]
jmp dword [eax*4 + 0x4af830]
mov ecx, dword [esi + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
call eax
mov ecx, dword [0x63aec8]
movzx eax, ax
push eax
call fcn.00442e80
mov ecx, dword [0x63aec8]
push eax
call fcn.00444c70
jmp case.0x4af60c.2
mov ecx, dword [0x648a5c]
cmp byte [ecx + 0x494], 0
je case.0x4af60c.2
lea ecx, [esp + 0x14]
call fcn.0051e910
mov ecx, dword [esi + 0x330]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
mov dword [esp + 0x34], 0
call eax
push eax
call fcn.00402a90
mov ecx, eax
call fcn.00425220
mov esi, eax
test esi, esi
je 0x4af7d7
mov ecx, dword [0x648a5c]
cmp dword [ecx + 0x434], 0
movzx ebx, word [esi + 0x3b]
je 0x4af6c2
push ebx
call fcn.00402a90
mov ecx, eax
call fcn.00515290
test eax, eax
jne 0x4af6c2
movzx eax, word [esi + 0x1c]
movzx edx, ax
push edx
call fcn.00402a90
mov ecx, eax
call fcn.00425220
mov esi, eax
movzx eax, word [esi + 0x41]
test ax, ax
jne 0x4af746
mov ecx, 0x648a58
call fcn.0048b540
mov edi, eax
test edi, edi
je 0x4af722
cmp dword [edi + 0x34c], 0
jne 0x4af7d7
mov ecx, edi
call fcn.00488c70
cmp al, 0x14
je 0x4af7d7
push 0
push edi
lea ecx, [esp + 0x1c]
call fcn.0051e780
push ebx
call fcn.00402a90
mov ecx, eax
call fcn.00515290
cmp eax, 1
jne 0x4af75d
mov ecx, dword [0x648a5c]
call fcn.00484550
jmp 0x4af75d
push 0x190
mov ecx, 0x64aa48
call fcn.004bcff0
push eax
push 0x17
push 0x64aa48
call fcn.004bd010
add esp, 0xc
jmp 0x4af7d7
cmp ax, 1
jne 0x4af75d
mov eax, dword [0x648a5c]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.0051e780
movzx eax, word [esi + 0x86b]
test ax, ax
jne 0x4af798
mov ecx, dword [0x648a5c]
cmp byte [ecx + 0x155], al
je 0x4af798
push 0x531
mov ecx, 0x64aa48
call fcn.004bcff0
push eax
push 0x17
push 0x64aa48
call fcn.004be450
add esp, 0xc
jmp 0x4af7d7
call fcn.00402a90
mov dword [eax + 0x64], esi
mov edx, dword [0x648a5c]
movzx eax, byte [edx + 0x454]
push eax
mov ecx, esi
call fcn.005145f0
add eax, 0xc8
push 1
lea ecx, [esp + 0x18]
mov dword [ebp + 0x40], eax
mov edx, dword [0x648a5c]
push ecx
push edx
call fcn.00402a90
mov ecx, eax
call fcn.00517c90
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.004135c0
jmp case.0x4af60c.2
mov ecx, dword [esi + 0x330]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
mov ecx, dword [0x648a5c]
add eax, 0xffff15a0
push eax
add ecx, 0xa18
call fcn.0044b070
test eax, eax
je case.0x4af60c.2
mov ecx, eax
call fcn.005249c0
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8