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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov esi, dword [eax + 4]
test esi, esi
je 0x497f22
mov edx, dword [ecx + 4]
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 8], ecx
movzx ecx, word [esi + 0x192]
lea eax, [esi + 0x10c]
mov ebp, 0xffffffff
mov dword [esp + 4], esi
mov dword [esp + 0xc], ecx
lea ecx, [ecx*4]
lea ebx, [ecx + ecx*2]
nop dword [eax]
test ebx, ebx
je 0x497ee0
lea ecx, [eax + 0xc]
mov edi, dword [esp + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov esi, edi
sub esi, ecx
cmovb ecx, edi
push ecx
push dword [eax + 4]
push edx
mov edi, edx
call fcn.004f60f4
mov edx, edi
add esp, 0xc
test eax, eax
cmovne esi, eax
xor ecx, ecx
mov eax, 0xff
test esi, esi
setne cl
cmovs ecx, eax
mov eax, dword [esp + 0x10]
add ebx, 0xfffffff4
inc ebp
cmp cl, 1
je 0x497e80
movzx eax, cl
test eax, eax
je 0x497eff
jmp 0x497ee4
mov ebp, dword [esp + 0xc]
mov eax, dword [esp]
mov esi, dword [esp + 4]
sub eax, 1
jb 0x497f2e
mov esi, dword [esi + ebp*4 + 0x198]
mov dword [esp], eax
jmp 0x497e59
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 4]
mov eax, dword [eax]
test eax, eax
je 0x497fc1
push 1
push eax
push edx
call fcn.0040dc90
add esp, 0xc
jmp 0x497fc1
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
xor esi, esi
mov dword [esp + 8], eax
test edx, edx
je 0x497fc1
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x6c]
lea edi, [esp + 0x20]
test esi, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
je 0x49800d
mov ecx, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
lea eax, [esp + 0x2c]
lea edx, [esp + 0x30]
lea esi, [esp + 0x48]
mov dword [esp + 0x38], ecx
movsd qword [esp + 0x30], xmm0
mov ecx, dword [edi + 8]
movsd xmm0, qword [edi]
mov dword [esp + 0x44], ecx
movsd qword [esp + 0x3c], xmm0
lea ecx, [esp + 0x3c]
push eax
push dword [esp + 0x78]
push ecx
push edx
push esi
call fcn.00499d00
add esp, 0x14
mov eax, dword [esp + 0x2c]
inc dword [eax + 8]
jmp 0x498078
lea ecx, [ebp + ebp*2]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
movsd xmm0, qword [esi + ecx*8 + 0x10]
movsd xmm2, qword [edx + 8]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esi + ecx*8]
movsd xmm1, qword [esi + ecx*8 + 8]
movsd qword [eax], xmm0
movsd xmm0, qword [edx]
movsd qword [eax + 8], xmm1
movsd qword [esi + ecx*8 + 8], xmm2
movsd qword [esi + ecx*8], xmm0
movsd xmm0, qword [edx + 0x10]
movsd qword [esi + ecx*8 + 0x10], xmm0
jmp 0x49807f
push 8
push 0x198
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x498087
mov edx, dword [esp + 0x74]
movsd xmm0, qword [edi]
mov ecx, dword [edi + 8]
mov dword [eax + 0x108], 0
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
movsd xmm1, qword [edx + 8]
movsd qword [eax + 0x10c], xmm0
mov dword [eax + 0x114], ecx
mov word [eax + 0x192], 1
movsd xmm0, qword [edx]
movsd qword [eax + 8], xmm1
movsd xmm1, qword [edx + 0x10]
movsd qword [eax], xmm0
movsd qword [eax + 0x10], xmm1
mov eax, dword [esp + 0x68]
mov byte [eax], 6
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 0x198
call fcn.005062c0
add esp, 8
ud2