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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x4fa0a8]
xor eax, esp
mov dword [esp + 0xf4], eax
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, edi
mov dword [esp + 0x3c], edi
mov eax, dword [edi]
call dword [eax + 0x5c]
mov eax, dword [edi + 0x11c]
mov ecx, edi
mov esi, dword [esp + 0x84]
sub esi, dword [edi + 0x124]
sub esi, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x120]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
sub eax, dword [edi + 0x128]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x48], esi
mov eax, dword [eax + 0x48]
call eax
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
test eax, eax
jle 0x415b75
nop word [eax + eax]
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x4c]
call eax
mov edi, eax
mov dword [esp + 0x44], edi
test edi, edi
je case.default.0x415585
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xd0]
call edx
test eax, eax
je case.default.0x415585
mov eax, dword [edi]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call dword [eax + 0x80]
mov eax, dword [edi + 0xf0]
lea ecx, [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x5c]
mov eax, dword [edi + 0xa4]
lea ecx, [esp + 0x8c]
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0x9c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xa0]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
movaps xmmword [esp + 0x14], xmm0
mov eax, dword [eax + 0x5c]
call eax
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, dword [eax]
sub edx, dword [eax + 4]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jne 0x4154bd
cmp dword [esp + 0x3c], 0
je 0x415578
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4154cb
cmp eax, 3
jne 0x4154f7
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
test ecx, ecx
je 0x4154ff
test edx, edx
jne 0x4154ff
mov edx, dword [edi]
mov eax, esi
sub eax, dword [esp + 0x28]
mov ecx, edi
sub eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
push 0
push eax
call dword [edx + 0x68]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
test eax, eax
je 0x415508
cmp eax, 2
jne 0x415542
test edx, edx
je 0x415542
test ecx, ecx
jne 0x415542
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
sub eax, dword [esp + 0x68]
mov edx, dword [edi]
sub eax, dword [esp + 0x60]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
lea eax, [esp + 0x54]
mov ecx, edi
push eax
mov eax, dword [edi]
call dword [eax + 0xe4]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
jmp 0x415566
mov eax, dword [edi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 0xe4]
cmp dword [esp + 0x40], 0
je 0x415562
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
jmp 0x415566
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x3c], 0
cmovne edx, dword [esp + 0x58]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0xc]
cmp eax, 0xe
ja case.default.0x415585
jmp dword [eax*4 + 0x415b94]
mov ecx, dword [esp + 0x2c]
mov eax, ecx
sub eax, dword [esp + 0x24]
test byte [esp + 8], 2
mov dword [esp + 8], eax
je 0x4155b2
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
jmp 0x4155b6
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x28]
add edx, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
add eax, dword [esp + 0x24]
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
je 0x4155f5
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x68]
sub eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 8]
jge 0x4155f5
add eax, dword [esp + 0x14]
jmp 0x4155fb
mov eax, ecx
sub eax, dword [esp + 0x68]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x1c], eax
je 0x41560c
add edx, dword [esp + 0x30]
jmp 0x415614
sub edx, dword [esp + 0x6c]
add edx, dword [esp + 0x74]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
jmp 0x415b48
test byte [esp + 8], 2
je 0x41565f
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
mov dword [esp + 8], eax
cdq
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
sub edx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], edx
jmp 0x415675
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edi, dword [esp + 0x60]
sub ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xc]
sub esi, dword [esp + 0x64]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x24]
add edx, edi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 8]
je 0x4156b6
sub ecx, edx
sub ecx, edi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0xc]
jge 0x4156b6
mov eax, dword [esp + 0x24]
add eax, edi
add eax, ecx
jmp 0x4156b8
sub eax, edx
cmp dword [esp + 0x40], 0
mov dword [esp + 0x1c], eax
je 0x4156dc
sub esi, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x10], esi
sub esi, dword [esp + 0x5c]
mov dword [esp + 0x48], esi
jmp 0x415b48
sub esi, dword [esp + 0x74]
add esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x10], esi
sub esi, dword [esp + 0x5c]
mov dword [esp + 0x48], esi
jmp 0x415b48
cmp dword [esp + 8], 1
jne 0x415717
mov eax, esi
sub eax, dword [esp + 0x28]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
jmp 0x41571b
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x60]
mov dword [esp + 8], eax
add eax, dword [esp + 0x28]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], eax
mov eax, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
je 0x415756
sub eax, dword [esp + 0x10]
sub eax, dword [esp + 0x64]
cmp ecx, eax
jge 0x415754
mov eax, dword [esp + 0x10]
add eax, ecx
jmp 0x41575a
mov eax, esi
sub eax, dword [esp + 0x64]
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x18], eax
je 0x415773
mov edx, dword [esp + 0x34]
add dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
jmp 0x41577b
sub edx, dword [esp + 0x70]
add edx, dword [esp + 0x78]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
jmp 0x415b48
cmp dword [esp + 8], 1
jne 0x4157b2
mov eax, esi
sub eax, dword [esp + 0x28]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
jmp 0x4157ba
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x68]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x10], eax
mov eax, esi
mov dword [esp + 0x1c], ecx
je 0x4157f5
sub eax, dword [esp + 0x10]
sub eax, edx
mov edx, dword [esp + 0x30]
cmp edx, eax
jge 0x4157ed
mov eax, dword [esp + 0x10]
add eax, edx
jmp 0x4157f7
mov eax, esi
sub eax, dword [esp + 0x64]
jmp 0x4157f7
sub eax, edx
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x18], eax
je 0x41581b
sub ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], ecx
jmp 0x415b48
sub ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], ecx
jmp 0x415b48
test byte [esp + 8], 1
je 0x41586a
mov eax, esi
sub eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x44], eax
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x44]
sar ecx, 1
sub eax, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
jmp 0x41587a
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
test byte [esp + 8], 2
je 0x4158aa
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x34]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x68], ecx
mov ecx, eax
mov dword [esp + 0x60], eax
jmp 0x4158b6
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], eax
add ecx, dword [esp + 0x24]
mov edx, esi
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 8]
cmp eax, dword [esp + 0x28]
cmovl eax, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
cmovl ecx, dword [esp + 0x24]
cmp edx, dword [esp + 0x48]
mov dword [esp + 0x28], 0
cmovg edx, dword [esp + 0x48]
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
cmovg esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
xor esi, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x2c], esi
jmp 0x415b44
mov eax, esi
mov esi, dword [esp + 0x28]
sub eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x60]
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
sub eax, dword [esp + 0x34]
add esi, dword [esp + 0x5c]
cdq
sub eax, edx
mov dword [esp + 0x10], esi
sar eax, 1
add eax, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x30]
add eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
add eax, ecx
jmp 0x415b3c
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov ecx, dword [eax + 0x50]
sub ecx, dword [eax + 0x48]
sub ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
add eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jmp 0x415b48
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x54]
sub ecx, dword [esi + 0x4c]
sub ecx, dword [esp + 0x68]
add eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
sub ecx, edx
mov dword [esp + 0x18], eax
jmp 0x415b40
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov eax, dword [ecx + 0x50]
sub eax, dword [ecx + 0x48]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
sub eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x54]
sub eax, dword [ecx + 0x4c]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x415b48
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x9c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
mov ecx, dword [eax + 8]
sub ecx, dword [esp + 0x64]
sub ecx, dword [eax]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
add eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x415b48
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xac]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
lea edx, [esp + 0xbc]
push edx
mov ecx, dword [eax + 8]
sub ecx, dword [esp + 0x68]
sub ecx, dword [eax]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov eax, dword [esp + 0x34]
sub ecx, eax
sub ecx, dword [esp + 0x68]
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x415b44
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xcc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov eax, dword [esp + 0x30]
sub ecx, eax
sub ecx, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x415b48
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xdc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
lea edx, [esp + 0xec]
push edx
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov eax, dword [esp + 0x34]
sub ecx, eax
sub ecx, dword [esp + 0x68]
add eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
jmp 0x415b48
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
add eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [edx + ecx]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
movups xmm0, xmmword [esp + 0x10]
mov edx, dword [edi]
mov ecx, edi
push 0
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x4c], ecx
cmp ecx, dword [esp + 0x50]
jl 0x415410
mov ecx, edi
call fcn.00405650
mov ecx, dword [esp + 0xfc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0049a9dd
mov esp, ebp
pop ebp
ret