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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
push esi
mov eax, dword [esi + 0x30]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x20], ebx
call fcn.004aea60
mov eax, dword [esi + 0x30]
add esp, 4
mov ecx, dword [eax + 0x1c]
add eax, 0x18
lea edi, [ecx - 0x14]
cmp ecx, eax
je 0x4af502
nop dword [eax + eax]
mov eax, dword [edi]
cmp eax, dword [ebx]
je 0x4af4ee
xor edx, edx
cmp byte [edi + 0x10], dl
je 0x4af459
mov ecx, dword [eax + 0x24]
add eax, 0x2c
jmp 0x4af45f
mov ecx, dword [eax + 0x34]
add eax, 0x3c
push dword [edi + 0xc]
cmp ecx, eax
lea eax, [esp + 0x74]
push 1
cmovne edx, ecx
push edx
push 0
push eax
call fcn.00412540
mov ecx, dword [edi]
add esp, 0x14
cmp dword [ecx + 8], 0
jne 0x4af488
mov eax, 1
jmp 0x4af495
mov eax, dword [ecx]
xor edx, edx
mov ecx, eax
cmp dword [eax], edx
cmove ecx, edx
xor eax, eax
push ecx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00412800
mov ecx, dword [edi]
xor eax, eax
add esp, 0xc
cmp dword [ecx + 8], eax
jne 0x4af4b4
lea ebx, [eax + 1]
mov edx, ecx
jmp 0x4af4cf
mov edx, dword [ecx]
cmp dword [edx], eax
cmove edx, eax
mov eax, dword [ecx + 4]
xor ebx, ebx
xor ebp, ebp
mov ecx, eax
cmp dword [eax + 4], ebx
mov eax, 1
cmove ecx, ebp
push edx
push ebx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00412540
lea eax, [esp + 0x34]
push eax
call fcn.00412290
mov ebx, dword [esp + 0x34]
add esp, 0x18
mov ecx, dword [edi + 0x18]
mov eax, dword [esi + 0x30]
add eax, 0x18
lea edi, [ecx - 0x14]
cmp ecx, eax
jne 0x4af440
mov edx, dword [ebx]
xor edi, edi
cmp byte [ebx + 0x10], 0
je 0x4af524
lea eax, [edx + 0x2c]
cmp dword [edx + 0x24], eax
lea eax, [edx + 0x3c]
cmovne edi, dword [edx + 0x24]
xor ebp, ebp
cmp dword [edx + 0x34], eax
cmovne ebp, dword [edx + 0x34]
jmp 0x4af53a
lea eax, [edx + 0x3c]
cmp dword [edx + 0x34], eax
lea eax, [edx + 0x2c]
cmovne edi, dword [edx + 0x34]
xor ebp, ebp
cmp dword [edx + 0x24], eax
cmovne ebp, dword [edx + 0x24]
mov dword [esp + 0x14], ebp
xor ecx, ecx
lea ebp, [esi + 0x18]
cmp dword [esi + 0x10], ebp
cmovne ecx, dword [esi + 0x10]
cmp dword [edx + 8], 0
jne 0x4af554
xor eax, eax
jmp 0x4af564
mov eax, dword [edx + 4]
xor edx, edx
cmp dword [eax + 4], edx
cmovne edx, eax
mov eax, 1
push edx
push eax
push ecx
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00412540
push dword [ebx + 0xc]
lea eax, [esp + 0x9c]
push 1
push edi
push 0
push eax
call fcn.00412540
mov ecx, dword [ebx]
add esp, 0x28
cmp dword [ecx + 8], 0
jne 0x4af59a
mov edx, 1
jmp 0x4af5a5
mov eax, dword [ecx]
xor edx, edx
xor ecx, ecx
cmp dword [eax], ecx
cmovne ecx, eax
push ecx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00412800
add esp, 0xc
cmp dword [esi + 0x10], ebp
je 0x4af5c1
mov edx, dword [esi + 0x1c]
jmp 0x4af5c3
xor edx, edx
mov ecx, dword [ebx]
cmp dword [ecx + 8], 0
jne 0x4af5d2
mov edi, 1
jmp 0x4af5dd
mov eax, dword [ecx]
xor edi, edi
xor ecx, ecx
cmp dword [eax], ecx
cmovne ecx, eax
push edx
push 1
push ecx
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00412540
push 0
call fcn.00462f10
add esp, 0x18
lea ebp, [esi + 4]
cmp dword [esi + 8], 0
mov ebx, eax
mov dword [esp + 0x18], ebx
jne 0x4af611
mov dword [esp + 0x10], 0
mov edi, esi
jmp 0x4af624
mov eax, dword [ebp]
xor edi, edi
mov dword [esp + 0x10], 1
cmp dword [eax + 4], edi
cmovne edi, eax
push ebx
push dword [esi + 0xc]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0045bb70
push edi
push dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call fcn.00412800
mov eax, dword [esi + 0x30]
add esp, 0x1c
mov dword [esp + 0x10], 0
cmp dword [eax + 0xc], 0
jbe 0x4af6f7
nop
cmp dword [esi + 8], 0
jne 0x4af66c
xor ebx, ebx
mov edi, esi
jmp 0x4af67a
mov edi, dword [ebp]
xor eax, eax
cmp dword [edi + 4], eax
lea ebx, [eax + 1]
cmove edi, eax
push dword [esp + 0x18]
lea eax, [esp + 0x4c]
push dword [esi + 0xc]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0045bb70
push edi
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00412800
add esp, 0x1c
cmp dword [esi + 8], 0
jne 0x4af6ab
xor ebx, ebx
mov edi, esi
jmp 0x4af6b9
mov edi, dword [ebp]
xor eax, eax
cmp dword [edi + 4], eax
lea ebx, [eax + 1]
cmove edi, eax
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push dword [esi + 0xc]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0045bb70
push edi
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00412800
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, dword [esi + 0x30]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax + 0xc]
jb 0x4af660
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
lea eax, [ecx + 0x18]
cmp dword [ecx + 0x10], eax
je 0x4af70b
mov eax, dword [ecx + 0x1c]
jmp 0x4af70d
xor eax, eax
push eax
call fcn.00409250
push dword [edi + 8]
lea eax, [esp + 0x64]
push 1
push dword [esp + 0x20]
push 0
push eax
call fcn.00412540
add esp, 0x18
cmp dword [esi + 8], 0
jne 0x4af73d
mov dword [esp + 0x14], 0
mov edi, esi
jmp 0x4af750
mov eax, dword [ebp]
xor edi, edi
mov dword [esp + 0x14], 1
cmp dword [eax + 4], edi
cmovne edi, eax
push ebx
push dword [esi + 0xc]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0045bb70
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
call fcn.00412800
add esp, 0x1c
cmp dword [esi + 8], 0
jne 0x4af786
mov edx, 1
xor edi, edi
mov ecx, esi
jmp 0x4af79f
mov eax, dword [esi]
xor edx, edx
xor esi, esi
cmp dword [eax], edx
lea edi, [edx + 1]
cmovne esi, eax
mov eax, dword [ebp]
xor ecx, ecx
cmp dword [eax + 4], ecx
cmovne ecx, eax
push esi
push edx
push ecx
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00412540
lea eax, [esp + 0x34]
push eax
call fcn.00412290
lea eax, [esp + 0x4c]
push eax
call fcn.00412290
lea eax, [esp + 0x64]
push eax
call fcn.00412290
lea eax, [esp + 0x7c]
push eax
call fcn.00412290
push 0
push ebx
call fcn.004627c0
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret