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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x180
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
cmp ecx, edx
jg 0x65aa22
sar edx, 0x1f
mov edi, ecx
sar edi, 0x1f
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 8]
movsx esi, word [esi + 2]
mov ebx, esi
sar ebx, 0x1f
add esi, ecx
adc ebx, edi
mov edi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
sbb ebx, edx
mov edx, dword [ebp + 0xc]
jge 0x65ab40
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edx
lea ecx, [esi + 0x38]
lea eax, [esp + 0xb0]
mov dword [esp + 0x48], eax
mov byte [esp + 0xb0], 0xb
lea edx, [esp + 0x48]
call fcn.00656720
xor ebx, ebx
test eax, eax
je 0x65aa89
mov eax, dword [eax + 8]
movzx ecx, byte [eax]
cmp ecx, 5
je 0x65aa87
cmp ecx, 6
jne 0x65aa89
dec eax
mov ebx, eax
test ebx, ebx
jne 0x65afde
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x80], eax
lea edi, [esi + 0x78]
mov dword [esp + 0x88], edi
mov eax, dword [esi + 0x78]
cmp eax, 0xffffffff
je 0x65aaf5
lea eax, [esp + 0x88]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push 0x4a2990
push eax
push edi
call fcn.0051c150
add esp, 0xc
mov dword [esp + 8], edi
lea ecx, [esi + 0x7c]
mov dword [esp + 4], ecx
call fcn.0051b740
add esi, 0x4c
lea eax, [esp + 0x70]
mov dword [esp + 0xb0], eax
mov byte [esp + 0x70], 0xb
lea edx, [esp + 0xb0]
mov ecx, esi
call fcn.006569a0
xor ebx, ebx
mov dl, 1
test eax, eax
je 0x65ab5a
mov eax, dword [eax + 8]
movzx ecx, byte [eax]
cmp ecx, 6
je 0x65ab55
cmp ecx, 5
je 0x65ab56
jmp 0x65ab5a
sub edx, ecx
lea ecx, [edx + edx*4]
lea ebx, [eax + ecx*4]
test ebx, ebx
jne 0x65afde
jmp 0x65aa91
dec eax
xor edx, edx
mov ebx, eax
mov edi, edx
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x65ab9a
lea eax, [esp + 0x88]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push 0x4a2990
push eax
push ecx
call fcn.0051c150
add esp, 0xc
mov ecx, dword [esp + 4]
call fcn.0051b7e0
mov eax, edi
test al, al
je 0x65afde
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x65abeb
lea eax, [esp + 0x88]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push 0x4a2990
push eax
push ecx
call fcn.0051c150
add esp, 0xc
mov ecx, dword [esp + 4]
call fcn.0051b740
lea eax, [esp + 0x70]
mov dword [esp + 0xb0], eax
mov byte [esp + 0x70], 0xb
lea edi, [esp + 0xb0]
mov ecx, esi
mov edx, edi
call fcn.006569a0
test eax, eax
mov ecx, dword [ebp + 8]
je 0x65ac35
mov ebx, dword [eax + 8]
movzx eax, byte [ebx]
cmp eax, 5
je 0x65af9e
cmp eax, 6
jne 0x65ac35
dec ebx
jmp 0x65af9e
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 8]
test byte [eax], 1
je 0x65ac5a
mov eax, dword [eax + 8]
jmp 0x65ac5b
inc eax
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push ecx
push eax
push str.UNKNOWN_ENUM_VALUE__s__d
push edx
call fcn.00783d60
add esp, 0x10
movzx eax, byte [0x9b73b0]
test al, al
je 0x65afea
mov edi, dword [0x9b73a8]
mov ecx, dword [0x8d3320]
call fcn.0076af30
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0xe0], xmm0
movups xmmword [esp + 0x13c], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xe4], 0x18
mov ebx, dword [edi]
mov dword [esp + 0xe8], 2
test ebx, ebx
mov dword [esp + 0xc], esi
je 0x65ada7
mov dword [esp + 0x154], ebx
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x65ad4a
lea eax, [esp + 0x154]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push 0x4a2990
push eax
push ebx
call fcn.0051c150
add esp, 0xc
lea edi, [ebx + 4]
mov ecx, edi
call fcn.0051b740
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x2c]
call fcn.00646320
mov dword [esp + 0x154], ebx
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x65ad9e
lea eax, [esp + 0x154]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push 0x4a2990
push eax
push ebx
call fcn.0051c150
add esp, 0xc
mov ecx, edi
call fcn.0051b7e0
jmp 0x65adb7
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x2c]
call fcn.00646320
lea edi, [esp + 0xb0]
mov ecx, edi
mov edx, 1
call fcn.00645120
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
movzx edx, byte [ecx + 0xc]
mov eax, edx
shr eax, 1
test dl, 1
lea edx, [ecx + 0xd]
cmovne edx, dword [ecx + 0x14]
mov dword [esp + 0x48], edx
cmovne eax, dword [ecx + 0x10]
movzx ecx, byte [esp + 0x10]
mov edx, ecx
shr edx, 1
test cl, 1
lea ecx, [esp + 0x11]
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
cmovne edx, dword [esp + 0x14]
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], edx
mov dword [esp + 0x88], 0x8d0947
mov dword [esp + 0x8c], 1
lea eax, [esp + 0x154]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x48]
lea esi, [esp + 0x20]
push eax
push ecx
push edx
push esi
call fcn.0062cf90
add esp, 0x10
mov ecx, edi
mov edx, 2
call fcn.00656ac0
mov edi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x10]
push eax
call fcn.0051f860
test byte [edi], 1
je 0x65ae8e
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x65ae8e
push dword [edi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [edi], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
movzx ecx, byte [esp + 0x20]
mov eax, dword [esp + 0x21]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3f], eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test byte [edi + 0xc], 1
mov esi, dword [esp + 0xc]
je 0x65af21
mov eax, dword [edi + 0x14]
mov byte [eax], 0
mov dword [edi + 0x10], 0
test byte [edi + 0xc], 1
je 0x65af21
push dword [edi + 0x14]
mov byte [esp + 7], cl
mov dword [esp + 0x48], edx
call fcn.0051c570
mov edx, dword [esp + 0x48]
movzx ecx, byte [esp + 7]
add esp, 4
mov byte [edi + 0xc], cl
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3f]
mov dword [edi + 0xd], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
test byte [esp + 0x30], 1
je 0x65af48
push dword [esp + 0x38]
call fcn.0051c570
add esp, 4
mov dword [ebx + 8], edi
test byte [esp + 0x20], 1
je 0x65af5e
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [0x8d3324]
mov dword [ebx + 0x10], eax
mov byte [ebx], 5
mov dword [esp + 0x48], ebx
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.006355e0
test byte [esp + 0x10], 1
lea edi, [esp + 0xb0]
je 0x65af9e
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x65afd5
lea eax, [esp + 0x88]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x48], edi
lea eax, [esp + 0x48]
push 0x4a2990
push eax
push ecx
call fcn.0051c150
add esp, 0xc
mov ecx, dword [esp + 4]
call fcn.0051b7e0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
push 0x9b73b0
call fcn.004cc400
add esp, 4
test eax, eax
je 0x65ac81
call fcn.006362c0
mov edi, eax
push eax
push 0x65fec0
call fcn.004a1dd0
add esp, 8
mov dword [0x9b73a8], edi
push 0x9b73b0
call fcn.004cc570
add esp, 4
jmp 0x65ac81