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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov eax, dword [ebx]
mov esi, dword [ebx + 8]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
cmp dword [edi], 0
je 0x4af7d8
cmp dword [edi + 0x1c], eax
je 0x4af7d8
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x4af7c7
mov dword [esp + 0x14], edi
test eax, eax
je 0x4af90f
cmp dword [ebp + 0x10], ecx
je 0x4af90f
mov eax, dword [ebp + 8]
test byte [eax + 0x1c], 0x80
jne 0x4af83a
mov ecx, ebx
call fcn.0048b52b
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0
push esi
push dword [ebp + 0x10]
mov edx, 0x8e
call fcn.004746eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0
push dword [esp + 0x28]
push 0x1e
pop edx
call fcn.004746eb
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.0048b54a
jmp 0x4af90f
mov ecx, eax
call fcn.00490d43
mov ecx, dword [ebx + 0x2c]
mov edx, eax
and dword [esp + 0x2c], 0
mov dword [esp + 0x34], edx
movzx eax, word [edx + 0x32]
lea edi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [ebx + 0x2c], ecx
test eax, eax
je 0x4af8b0
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x2c]
mov edx, dword [edx + 4]
mov ecx, edi
mov dx, word [edx + ebx*2]
call fcn.00490d5b
movsx ecx, ax
mov eax, dword [esp + 0x1c]
add eax, ebx
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push 0x5e
pop edx
call fcn.004746eb
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x4af872
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
push eax
push dword [esp + 0x20]
mov ecx, esi
push 0
push dword [esp + 0x2c]
push 0x1d
pop edx
call fcn.00474a00
mov ecx, dword [esp + 0x20]
mov esi, eax
push 0
push 2
push 0xb
push 0x46
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov edx, eax
push 0xffffffffffffffff
push 0x430058
call fcn.00474eab
cmp dword [ebx + 0x78], 0
mov eax, ebx
pop ecx
cmovne eax, dword [ebx + 0x78]
mov edx, esi
pop ecx
mov ecx, dword [esp + 0x10]
mov byte [eax + 0x15], 1
call fcn.00474f68
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [edx + 0x20]
call fcn.0048660e
pop ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x34], eax
xor eax, eax
cmp ax, word [ecx + 0x22]
jge 0x4af981
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [ebx + 4]
cmp byte [ecx + eax + 8], 0x45
jne 0x4af969
mov eax, dword [esp + 0x24]
mov ecx, edi
push 0
push 0
mov eax, dword [eax + 0x24]
add eax, esi
push eax
push 0x57
pop edx
call fcn.004746eb
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [ebx + 0x22]
inc esi
add ecx, 0x10
mov dword [esp + 0x20], ecx
cmp esi, eax
jl 0x4af940
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, dword [edi + 0xc]
xor esi, esi
test edx, edx
je 0x4af999
mov ecx, dword [esp + 0x18]
push esi
push esi
call fcn.004861de
pop ecx
pop ecx
jmp 0x4af99b
mov eax, esi
mov edx, dword [edi + 8]
push edi
push esi
push esi
push 2
push eax
push ecx
mov ecx, dword [esp + 0x30]
push esi
call fcn.004864f4
mov edx, dword [esp + 0x50]
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.004ad9a0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret