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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x4b0300]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi + 0x20], eax
sub eax, 1
je 0x4187c4
mov esi, dword [edi + 4]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
cmp eax, edx
cmovb edx, eax
sub eax, edx
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
add dword [eax], edx
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
test cl, 1
je 0x4187ba
cmp ecx, 1
jne 0x41895c
test edx, edx
setne al
test al, al
jne 0x41895c
cmp dword [ebp + 0x14], 0
je 0x41895c
mov ecx, dword [edi + 4]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
mov dword [esp + 0x78], 0
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ecx + 0x20]
lea ecx, [esp + 0x60]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.00419130
push dword [edi + 0x24]
lea edx, [esp + 0x64]
movaps xmmword [esp + 0x24], xmm0
lea ecx, [esp + 0x24]
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0
call fcn.00418fe0
add esp, 4
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
call fcn.004190d0
cmp dword [edi + 0x1c], 0xf
lea eax, [edi + 8]
mov ecx, dword [eax + 0x10]
jbe 0x418859
add ecx, dword [eax]
mov eax, dword [eax]
jmp 0x41885b
add ecx, eax
movups xmm0, xmmword [esp + 0x40]
mov esi, dword [esp + 0x58]
push ecx
push eax
sub esp, 0x1c
mov eax, esp
sub esp, 0x1c
mov ecx, esp
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x90]
movq qword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x60]
mov dword [eax + 0x18], esi
mov eax, dword [esp + 0x78]
movups xmmword [ecx], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
lea ecx, [esp + 0x60]
call fcn.00419280
mov edx, dword [esp + 0x78]
add esp, 0x40
cmp edx, esi
je 0x4188c9
cmp byte [esp + 0x3c], 0
je 0x4188c9
mov eax, dword [edi + 0x18]
sub eax, dword [esp + 0x78]
add eax, edx
xor ecx, ecx
mov dword [edi + 0x24], eax
jmp 0x418940
mov esi, dword [edi + 4]
mov dword [esp + 8], esi
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax]
sub eax, dword [ecx]
cmp eax, dword [esi + 0x38]
jne 0x4188ea
mov dword [edi + 0x24], 0xffffffff
xor ecx, ecx
jmp 0x418940
sub edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x38], eax
cmovne ecx, edx
mov dword [edi + 0x24], ecx
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [esi + 0x1c]
mov esi, dword [eax]
mov ecx, esi
mov eax, dword [esp + 8]
sub ecx, edx
add ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x44]
sub eax, edx
mov edx, dword [esp + 8]
sub eax, dword [edx + 0x3c]
mov edx, 0x10000
add eax, esi
cmp ecx, edx
cmovb edx, ecx
mov ecx, 0x200
cmp eax, ecx
cmova ecx, eax
cmp edx, ecx
cmovb ecx, edx
cmp dword [ebp + 0x18], 0
mov dword [esp + 8], ecx
jne 0x4189f7
test ecx, ecx
jne 0x4189f7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp dword [edi + 0x24], 0xffffffff
jne 0x4189b8
mov ecx, dword [0x4b0db0]
mov eax, dword [0x4b0db4]
cmp ecx, 0x257edfd1
jne 0x41897c
cmp eax, 0xb2ab117a
je 0x41898b
cmp ecx, 0x257edfd0
jne 0x41898f
cmp eax, 0xb2ab117a
jne 0x41898f
mov al, 1
jmp 0x4189a0
mov eax, dword [0x4b0da8]
mov ecx, 0x4b0da8
push 3
mov eax, dword [eax + 0x18]
call eax
movzx ecx, al
add ecx, 2
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x4b0da8
jmp 0x4189c3
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
movq xmm0, qword [esp + 0x10]
lea eax, [esp + 0x10]
push ecx
mov dword [esp + 0x1c], ecx
lea ecx, [edi + 0x28]
push eax
movq qword [esp + 0x18], xmm0
call fcn.0040c3b0
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00469231
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [esp + 0xc]
mov edi, dword [edi]
push ecx
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.00410100
mov eax, dword [esi + 0x20]
mov ecx, dword [edi]
add ecx, 0x14
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x44]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
lea eax, [edi + 4]
push eax
call fcn.0041bdf0
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.00469231
mov esp, ebp
pop ebp
ret 0x14