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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov eax, ecx
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 0x48]
jl 0x51721c
push dword [esp + 0x80]
lea esi, [esp + 0x60]
push edi
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x7c]
mov ecx, eax
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.00512d9a
jmp 0x51792b
cmp byte [eax + 0x19], 0
lea ecx, [eax + 0x1c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
jne 0x51725a
cmp dword [ecx], 2
je 0x51725a
mov eax, dword [ebp]
lea esi, [esp + 0x5c]
sub esp, 0x20
mov byte [esp + 0x60], 1
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call dword [eax + 0xa8]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x7c]
jmp 0x517263
mov byte [esp + 0x40], 0
mov dword [esp + 0x14], ecx
mov al, byte [esi + 0x29]
push dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov ecx, eax
mov bl, byte [eax + 0x220]
call fcn.004ea8d7
push dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x50]
mov ecx, ebx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004d622a
mov ecx, dword [esp + 0x44]
push dword [esp + 0x50]
mov ecx, dword [ecx + 0x2ac]
add ecx, 4
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 0
mov dword [esp + 0x1c], eax
mov ecx, esi
push edi
lea eax, [esp + 0x24]
push eax
call fcn.005109bd
push 1
push edi
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.005109bd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x38]
movsd xmm0, qword [ecx + eax*8]
movsd qword [esp + 0x2c], xmm0
movsd xmm0, qword [esi + 0x50]
ucomisd xmm0, qword [0x560638]
lahf
test ah, 0x44
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], eax
jnp 0x517361
test edi, edi
jle 0x517361
mov edx, dword [esp + 0x58]
test al, 1
je 0x517351
mov eax, dword [esp + 0x44]
lea esi, [esp + 0x5c]
movzx eax, byte [eax + 0x220]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x60]
push dword [esp + 0x30]
push dword [esp + 0x30]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x80]
push esi
push ebx
push ebp
call fcn.005185d9
mov edi, dword [esp + 0xbc]
add esp, 0x40
mov edx, dword [esp + 0x58]
cvttsd2si eax, qword [esi + 0x50]
add edx, eax
mov eax, dword [esp + 0x80]
jmp 0x517365
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], edx
cmp dword [ecx], 0
je 0x51758e
test al, 1
je 0x5174f4
push dword [esp + 0x28]
lea esi, [esp + 0x60]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push edx
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x88]
push ebp
call fcn.00513248
movsd xmm0, qword [esp + 0x78]
lea esi, [esp + 0xa8]
add esp, 0x4c
push 1
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x88]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x84]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.00515265
movsd xmm0, qword [esp + 0x2c]
lea esi, [esp + 0x5c]
push 1
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x88]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x84]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.00514aa4
push dword [esp + 0x28]
movsd xmm0, qword [esp + 0x30]
lea esi, [esp + 0x60]
push dword [esp + 0x28]
mov eax, dword [esp + 0x88]
push ecx
push ecx
movsd qword [esp], xmm0
and eax, 0xfffffffe
push dword [esp + 0x30]
mov dword [esp + 0x5c], eax
push dword [esp + 0x90]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x8c]
mov esi, dword [esp + 0x8c]
push esi
push ebx
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x58]
push edi
push ebp
call fcn.00513fd1
movzx eax, byte [esi + 0x29]
mov ecx, ebx
push eax
movzx eax, byte [edi + 0x220]
push eax
call fcn.004d67ab
test al, al
je 0x5174f0
push dword [esp + 0x7c]
lea esi, [esp + 0x60]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push ebx
push ebp
call fcn.00513822
add esp, 0x30
mov eax, dword [esp + 0x48]
shr eax, 1
test al, 1
je 0x51758e
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x5c]
push dword [eax + 0x14]
push 1
push dword [esp + 0x40]
push dword [esp + 0x88]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x84]
push dword [esp + 0x84]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.00516c88
add esp, 0x48
lea esi, [esp + 0x5c]
push dword [esp + 0x20]
push dword [esp + 0x20]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x78]
push ebx
push ebp
call fcn.005150d5
add esp, 0x18
lea esi, [esp + 0x7c]
push 8
pop ecx
mov edi, esp
push dword [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x6c]
push ebp
call fcn.00517935
add esp, 0x30
mov eax, dword [esp + 0x48]
shr eax, 2
test al, 1
je 0x51766d
cmp byte [ebx + 0x78], 0
je 0x5175ef
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x5c]
push 1
push dword [eax + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x8c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x88]
push dword [esp + 0x88]
push ebx
push dword [esp + 0x88]
push ebp
call fcn.00518190
add esp, 0x4c
push 1
push dword [esp + 0x80]
lea esi, [esp + 0x64]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x78]
push ebx
push dword [esp + 0x78]
push ebp
call fcn.00517f55
add esp, 0x3c
lea esi, [esp + 0x5c]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x68]
push dword [esp + 0x94]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x8c]
mov esi, dword [esp + 0x54]
mov ecx, esi
push ebx
push dword [esp + 0x8c]
push ebp
call fcn.00515a1e
jmp 0x517671
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
shr eax, 3
test al, 1
je 0x5176b5
push dword [esp + 0x54]
lea esi, [esp + 0x60]
push dword [esp + 0x80]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x7c]
mov esi, dword [esp + 0x40]
mov ecx, esi
push dword [esp + 0x7c]
push ebx
push dword [esp + 0x7c]
push ebp
call fcn.005167fb
mov eax, dword [esp + 0x48]
shr eax, 4
test al, 1
je 0x517704
push dword [esi + 0x14]
lea esi, [esp + 0x60]
push 0
push dword [esp + 0x40]
push dword [esp + 0x88]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x84]
push dword [esp + 0x84]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.00516c88
add esp, 0x48
push dword [esp + 0x48]
movsd xmm0, qword [esp + 0x30]
lea esi, [esp + 0x60]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x88]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x84]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.00515265
push dword [esp + 0x48]
movsd xmm0, qword [esp + 0x30]
lea esi, [esp + 0x60]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x88]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x84]
mov esi, dword [esp + 0x48]
mov ecx, esi
push dword [esp + 0x84]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.00514aa4
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
jne 0x517888
push dword [esp + 0x28]
movsd xmm0, qword [esp + 0x30]
lea esi, [esp + 0x60]
push dword [esp + 0x28]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x30]
push dword [esp + 0x90]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x8c]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x50]
push esi
push ebx
push edi
push ebp
call fcn.00513fd1
movzx eax, byte [esi + 0x29]
mov ecx, ebx
push eax
movzx eax, byte [edi + 0x220]
push eax
call fcn.004d67ab
test al, al
je 0x51783c
push dword [esp + 0x7c]
lea esi, [esp + 0x60]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push ebx
push ebp
call fcn.00513822
add esp, 0x30
push dword [esp + 0x20]
lea esi, [esp + 0x60]
push dword [esp + 0x20]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x78]
push ebx
push ebp
call fcn.005150d5
add esp, 0x18
lea esi, [esp + 0x7c]
push 8
pop ecx
mov edi, esp
push dword [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x6c]
push ebp
call fcn.00517935
mov esi, dword [esp + 0x40]
add esp, 0x30
cmp byte [ebx + 0x78], 0
je 0x5178e1
mov eax, dword [esp + 0x48]
shr eax, 5
test al, 1
je 0x5178e1
push 2
push dword [esi + 0x14]
lea esi, [esp + 0x64]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x8c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x88]
push dword [esp + 0x88]
push ebx
push dword [esp + 0x88]
push ebp
call fcn.00518190
add esp, 0x4c
mov eax, dword [esp + 0x48]
shr eax, 6
test al, 1
je 0x517919
push 2
push dword [esp + 0x80]
lea esi, [esp + 0x64]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x78]
push ebx
push dword [esp + 0x78]
push ebp
call fcn.00517f55
add esp, 0x3c
cmp byte [esp + 0x40], 0
je 0x51792b
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xac]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x44