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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x45b170]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call fcn.00412a5e
mov ecx, dword [ebx + 0x2fd]
lea esi, [ebx + 0xd2]
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
add esi, dword [ebx + 0x2e5]
add eax, dword [ebx + 0x2e9]
sub edx, dword [ebx + 0x2ed]
sub edi, dword [ebx + 0x2f1]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
test ecx, ecx
je 0x4079c7
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4079c7
mov ecx, dword [ebx + 0x2fd]
mov eax, dword [ecx]
call dword [eax + 0x58]
sub dword [esp + 0x38], eax
mov ecx, dword [ebx + 0x301]
test ecx, ecx
je 0x4079ee
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4079ee
mov ecx, dword [ebx + 0x301]
mov eax, dword [ecx]
call dword [eax + 0x60]
sub edi, eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0x301]
sub eax, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], eax
mov eax, edi
sub eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x407a30
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x407a30
mov eax, dword [ebx + 0x301]
mov ecx, dword [esp + 0x2c]
add ecx, dword [eax + 0x2d6]
mov dword [esp + 0x2c], ecx
xor edi, edi
mov edx, edi
mov eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov ecx, edi
mov dword [esp + 0x28], edi
cmp dword [ebx + 0x2dd], edi
jle 0x407b8f
mov eax, dword [ebx + 0x2d9]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xc8]
test al, al
je 0x407b6e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf4]
test al, al
jne 0x407b6e
push dword [esp + 0x1c]
mov eax, dword [edi]
push dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x114]
cmp dword [esp + 0x10], 0
jne 0x407aa9
inc dword [esp + 0x40]
jmp 0x407adf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
cmp dword [esp + 0x10], eax
jge 0x407ac1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
cmp dword [esp + 0x10], eax
jle 0x407adf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0x48]
lea ecx, [esp + 0x5c]
lea esi, [eax + 0xc]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x48]
mov eax, dword [eax + 4]
add eax, dword [esi]
lea ecx, [esp + 0x7c]
add eax, dword [esp + 0x10]
push ecx
add dword [esp + 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
xor eax, eax
cmp dword [esp + 0xc], eax
mov ecx, edi
cmovg eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
call dword [eax + 0x68]
cmp dword [esp + 0xc], eax
jge 0x407b3a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
mov edx, dword [esp + 0xc]
cmp edx, eax
jle 0x407b56
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
mov edx, eax
mov dword [esp + 0xc], edx
cmp dword [esp + 0x24], edx
mov eax, dword [esp + 0x14]
cmovg edx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
jmp 0x407b72
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [ebx + 0x2dd]
jl 0x407a58
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
lea ecx, [eax - 1]
mov eax, dword [ebx + 0x2f5]
imul eax, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x326]
add edx, eax
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x407c16
add ecx, 0x326
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, eax
test edi, edi
je 0x407c12
lea ecx, [edi + 0x2d5]
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
jle 0x407c12
push dword [esp + 0x1c]
mov eax, dword [edi]
push dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x114]
cmp dword [eax], 0
jge 0x407bf2
and dword [esp + 0x24], 0
jmp 0x407c12
push dword [esp + 0x1c]
mov eax, dword [edi]
push dword [esp + 0x48]
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call dword [eax + 0x114]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
xor edi, edi
and dword [esp + 0x50], edi
mov dword [esp + 0x14], edi
test ecx, ecx
jle 0x407c3c
mov eax, dword [esp + 0x1c]
sub eax, edx
cdq
idiv ecx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x50], eax
mov ecx, dword [ebx + 0x2fd]
test ecx, ecx
je 0x407c66
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x407c66
mov eax, dword [ebx + 0x2fd]
mov ecx, dword [esp + 0x20]
sub ecx, dword [eax + 0x2da]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x301]
mov dword [esp + 0x48], esi
test ecx, ecx
je 0x407c92
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x407c92
mov eax, dword [ebx + 0x301]
mov edx, esi
sub edx, dword [eax + 0x2da]
mov dword [esp + 0x48], edx
and dword [esp + 0x54], edi
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [ebx + 0x2dd], ecx
jle 0x407cf4
mov eax, dword [ebx + 0x2d9]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
mov dword [esp + 0x7c], edi
call dword [eax + 0xc8]
test al, al
je 0x407cdb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf4]
test al, al
je 0x407d48
mov eax, dword [ebx]
push dword [esp + 0x28]
mov ecx, ebx
call dword [eax + 0x1a8]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [ebx + 0x2dd]
jl 0x407ca4
mov esi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x2f5]
imul eax, dword [esp + 0x58]
mov ecx, dword [ebx + 0x301]
add edi, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
test ecx, ecx
je 0x407f69
mov eax, dword [ecx]
call dword [eax + 0xc8]
cmp edi, dword [esp + 0x44]
jle 0x407f2d
mov ecx, dword [ebx + 0x301]
test al, al
je 0x407ef3
sub esi, dword [esp + 0x38]
add esi, edi
push esi
call fcn.0040d22e
jmp 0x407f69
mov eax, dword [edi]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call dword [eax + 0x48]
mov esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x60]
mov eax, dword [edi]
push esi
push dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x28], esi
call dword [eax + 0x114]
cmp dword [esp + 0x10], 0
jne 0x407dde
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x40]
jne 0x407da6
mov eax, esi
sub eax, dword [esp + 0x68]
push 0
sub eax, dword [esp + 0x1c]
pop ecx
cmovs eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
cmp dword [esp + 0x10], eax
jge 0x407dbe
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
cmp dword [esp + 0x10], eax
jle 0x407e1c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
mov dword [esp + 0x10], eax
jmp 0x407e1c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
cmp dword [esp + 0x10], eax
jge 0x407df6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x407e18
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
mov ecx, eax
mov dword [esp + 0x10], ecx
sub dword [esp + 0x18], ecx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x64]
mov ecx, edi
sub eax, dword [esp + 0x5c]
cmp dword [esp + 0x24], eax
cmovg eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
call dword [eax + 0x68]
cmp dword [esp + 0xc], eax
jge 0x407e4d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
cmp dword [esp + 0xc], eax
jle 0x407e67
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
mov dword [esp + 0xc], eax
jmp 0x407e6b
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
add eax, dword [esp + 0x48]
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
add eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
add eax, dword [esp + 0x20]
add ecx, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov eax, dword [edi]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x7c]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x34]
mov edx, dword [esp + 0x68]
mov esi, dword [ebx + 0x2f5]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea eax, [esi + edx]
add eax, ecx
add eax, dword [esp + 0x60]
add dword [esp + 0x20], eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x60]
add edi, eax
lea eax, [esi + edx]
add eax, ecx
sub dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
jmp 0x407cdf
mov eax, dword [ecx]
push 1
call dword [eax + 0xcc]
sub esi, dword [esp + 0x38]
mov ecx, dword [ebx + 0x301]
add esi, edi
push esi
call fcn.0040d22e
mov ecx, dword [ebx + 0x301]
push 0
call fcn.0040d275
mov ecx, dword [ebx + 0x301]
mov eax, dword [ecx]
call dword [eax + 0x60]
sub dword [esp + 0x3c], eax
jmp 0x407f69
test al, al
je 0x407f69
mov ecx, dword [ebx + 0x301]
xor esi, esi
mov eax, dword [ecx]
push esi
call dword [eax + 0xcc]
mov ecx, dword [ebx + 0x301]
push esi
call fcn.0040d22e
mov ecx, dword [ebx + 0x301]
push esi
call fcn.0040d275
mov ecx, dword [ebx + 0x301]
mov eax, dword [ecx]
call dword [eax + 0x60]
add dword [esp + 0x3c], eax
push dword [esp + 0x14]
mov eax, dword [ebx]
push edi
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1ac]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004363cf
mov esp, ebp
pop ebp
ret 0x10